Skip to content

feat(dotenv): add environment variable snippets#318393

Open
freepinkg wants to merge 1 commit into
microsoft:mainfrom
freepinkg:feat/dotenv-snippets
Open

feat(dotenv): add environment variable snippets#318393
freepinkg wants to merge 1 commit into
microsoft:mainfrom
freepinkg:feat/dotenv-snippets

Conversation

@freepinkg
Copy link
Copy Markdown

Add snippets for common environment variables in .env files.

Changes:

  • New extensions/dotenv/snippets/dotenv.code-snippets with 13 snippets covering common env var patterns: NODE_ENV, PORT, DATABASE_URL, REDIS_URL, API_KEY, SECRET_KEY, DEBUG, LOG_LEVEL, HOST, export, JWT_SECRET, AWS credentials, and section comments (###)
  • Updated extensions/dotenv/package.json to register the snippets contribution point

All snippets use tab stops ($1, $2) and choices (${1|debug,info,warn,error|}) for ergonomic tabbing through values.

Copilot AI review requested due to automatic review settings May 26, 2026 17:30
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@freepinkg
Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants