Skip to content

Instantly share code, notes, and snippets.

@ThatGuySam
Last active June 1, 2024 22:37
Show Gist options
  • Save ThatGuySam/be43a5f33e64e61ffde86cff46d2d093 to your computer and use it in GitHub Desktop.
Save ThatGuySam/be43a5f33e64e61ffde86cff46d2d093 to your computer and use it in GitHub Desktop.
Disable GitHub Copilot on dotenv files in VS Code
{
...
"files.associations": {
".env*": "dotenv",
".env.development": "dotenv",
".env.local": "dotenv",
".env.production": "dotenv"
},
"github.copilot.enable": {
"*": true,
"dotenv": false,
},
...
}
@ThatGuySam
Copy link
Author

ThatGuySam commented Jun 1, 2024

Originally found here:
https://stackoverflow.com/a/77908836/1397641

Also, if this disables color formatting for .env files you restore it with this extension:
https://marketplace.visualstudio.com/items?itemName=mikestead.dotenv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment