mikestead / vscode-dotenv

DotENV extension for vscode with 1M+ installs
MIT License
105 stars 13 forks source link

Comment shortcut no longer working #27

Closed kakins closed 3 years ago

kakins commented 3 years ago

CTRL K + C used to comment lines in .env files using #. Now the shortcut inserts ; instead. image

mikestead commented 3 years ago

Hey @kakins thanks for the report. This plugin hasn't changed for a long time, and I'm not seeing any issue with my shortcuts for commenting locally (still get the # prefix and on same version as you).

Have you installed any other plugins recently that may be clashing with this one?

giniedp commented 3 years ago

yeah, must be an extension. I am seeing same behavior, but have lots of extension (mac). A setup with only DotENV extension works as expected (in my case another machine, windows). Just need to find out which extension was updated recently

giniedp commented 3 years ago

strangely even with all extensions diabled, i still have syntax highligting on .env files and the comment inserts ;

giniedp commented 3 years ago

so basically my .env files got somehow recognized as an ini files. Fixed it by doing

After vscode restart the file keeps being recognized as "Environment Variables".

kakins commented 3 years ago

Hey! Sorry I need to subscribe to e-mail notifications for github :) .. I will give that a try now

kakins commented 3 years ago

@giniedp That did it, thanks! Man that was driving me crazy 😄