Configure dotfiles from your VS Code settings so they're always available.
Run dotfiles: Apply Config from the command palette to write files to disk as defined in config (dotfiles.files).
If dotfiles.autoUpdate is enabled, automatically apply config from settings to files on workbench open, and write changes to settings when saving a file in the editor that matches a file defined in dotfiles.files.
"dotfiles.files": {
"path/to/file.txt": "foo\nbar\n"
}writes file $XDG_CONFIG_HOME/path/to/file.txt with the content of the key.
The path separator in a key selects which platform the file is written on. Forward slashes and backslashes are not converted to each other:
- keys with forward slashes (
path/to/file.txt) apply on Linux and macOS only - keys with backslashes (
path\to\file.txt) apply on Windows only - keys without a separator (
file.txt) apply on every platform
To configure the same file on several platforms, add a key for each. Keys for other platforms are left untouched in settings and are ignored when applying config, opening files or saving changes back.
On Windows, if dotfiles.directory is unset the base directory is %XDG_CONFIG_HOME% or %USERPROFILE%\.config.
A code lens is added to keys in settings.json under dotfiles.files to open the file in an editor. Saving the file in the editor will apply changes back to settings.json if dotfiles.autoUpdate is enabled.
| Description | Default | |
|---|---|---|
dotfiles.directory |
Base directory path for all config files to be written. | "", meaning $XDG_CONFIG_HOME or $HOME/.config if unset. |
dotfiles.files |
Files to be written to the configured directory, where key is the relative path to the file and value is the content of the file. | {} |
dotfiles.autoUpdate |
Whether to automatically apply changes to files on workbench open, and persist changes back into settings from the editor. | false |
Releases run entirely in GitHub Actions (release.yml), triggered by pushing a v* tag. Either:
- run
make releaselocally, which computes the next version fromgit describe, tags the current commit, and pushes the tag, or - run the Release workflow from the Actions tab, which does the same remotely on the branch you run it from (an unsigned tag by the github-actions bot).
The workflow tests, packages, publishes to the Visual Studio Marketplace, and creates a GitHub release with generated notes and the .vsix attached. CHANGELOG.md is generated from GitHub release notes at build time and ships only inside the .vsix; it's never committed. The version in package.json is not kept in sync: each release is packaged with the version from its tag.
Pull requests are built by ci.yml, which runs the tests and uploads a .vsix (versioned x.y.z-pr.<PR>.<run>) as a workflow artifact. Download it from the run's summary page and install it with code --install-extension.
Required repository secrets:
VSCE_PAT: Azure DevOps personal access token with the Marketplace Manage scopeOVSX_PAT(optional): open-vsx.org token; if set, the extension is also published to Open VSX (the namespace must be claimed once first)
