Skip to content

Add WORKSPACE_FOLDER variable to code snippets #79428

@svdHero

Description

@svdHero

Code snippets are great. However, as described in https://code.visualstudio.com/docs/editor/userdefinedsnippets, there's only a build-in variable called WORKSPACE_NAME which yields The name of the opened workspace or folder, but no variable which yields the full path of the folder opened in VS Code.

Please add another variable called WORKSPACE_FOLDER to code snippets, which yields the path of the folder opened in VS Code, like the variable of the same name that one can use in launch.jsonand task.json, compare https://code.visualstudio.com/docs/editor/variables-reference.

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalityhelp wantedIssues identified as good community contribution opportunitiessnippetsverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions