For AI issues: which model did you use?
Model name (e.g., Sonnet 4, Tab…)
For AI issues: add Request ID with privacy disabled
Request ID: f9a7046a-279b-47e5-ab48-6e8dc12daba1
For Background Agent issues, also post the ID: bc-…
Additional Information
Add any other context about the problem here.
Does this stop you from using Cursor?
Yes - Cursor is unusable
Sometimes - I can sometimes use Cursor
No - Cursor works, but with this issue
The more details you provide, the easier it is for us to reproduce and fix the issue. Thanks!
Hi @mrkaon Thanks for the post! What you’re running into is a little different from the thread you linked. .env files are being read correctly on your version, and you can actually see that in your screenshot: your comments are still styled, and the status bar shows the language as Environment Variables. What’s missing is the color. Cursor’s built-in themes don’t currently include colors for the individual parts of a .env file, so keys and values both land within a hair of the normal text color, and the whole file reads as flat gray. Nothing on your end caused this, and it isn’t something you misconfigured. I’ve let the team know.
In the meantime, there are three ways to get color back, depending on how close to the old look you want to land:
1. Switch themes. Dark Modern (Ctrl+K Ctrl+T) colors .env keys light blue out of the box.
2. Keep your current theme and set the colors yourself. Add this to your settings.json:
This renders .env files with the same coloring they had before, teal keys and pink values, and # comments still work as expected.
I’ll post here with any relevant updates. If any of the above settings don’t land correctly, let me know and I’ll a second look to verify on my test machine.
I created the other thread. This was never fixed for me. It had coloured syntax highlighting for more than a year and a half that I’ve used cursor until recently.
even though they said it was fixed. Nothing changed for me. Yes it shows environment variables bit the color was being zeroed out on the default dot env styling. I just had cursor create a new one and I assign properties styling to environment variables as a work around.