Follow this easy step by step guide with visuals from official VSCode website to setup copilot Set up GitHub Copilot in VS Code
.vscode/settings.json add below config.
"files.associations": {
".env*": "dotenv",
".config*": "config"
},
"github.copilot.enable": {
"*": true,
"config": false
"dotenv": false
}