IssueRaiser

Revisit VS Code folder structure for app data, settings, extensions

Config is stored in `~/.config/Code[ - <quality>]/User`. To match platform conventions (lowercase and hyphens for everything) as well as to keep consistency with the cli `code[-<quality>]` I propose we change the settings directory one of: - `~/.config/code[-<quality>]/user` - `~/.vscode[-<quality>]` (see https://github.com/Microsoft/vscode/issues/3883) - `~/.code[-<quality>]` (to prevent using 'vs' showing up in the OSS build as it is now) If we moved this it would probably require some discovery/migration on first launch of a newer version. --- The below is a living document. ## Proposed folder structure Notes: - I don't think we should be encouraging the use of admin rights within vscode, instead a permissions elevation dialog would probably be better than allowing a specific place for root user data #5561 - I want to clean up the whole `code` vs `vscode` thing in this change; only official builds should carry the visual studio branding, that should carry over to the config directories consistently as well. - The CLI args `--user-data-dir` and `--extensions-dir` will need to be adjusted for this, something like `--config-dir` and `--cache-dir` would probably be better. ### Windows **Old** ``` Settings: %APPDATA%\Code[ - Variant]\User\settings.json Keybindings: %APPDATA%\Code[ - Variant]\User\keybindings.json Snippets: %APPDATA%\Code[ - Variant]\User\snippets\ Workspace storage: %APPDATA%\Code[ - Variant]\User\workspa

Posted by Tyriar on Mar 8, 2016, 8:58 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.5,000 issues0 comments

github (SaaS)

Revisit VS Code folder structure for app data, settings, extensions

TyriarMar 8, 2016, 8:58 PM

Config is stored in `~/.config/Code[ - <quality>]/User`. To match platform conventions (lowercase and hyphens for everything) as well as to keep consistency with the cli `code[-<quality>]` I propose we change the settings directory one of: - `~/.config/code[-<quality>]/user` - `~/.vscode[-<quality>]` (see https://github.com/Microsoft/vscode/issues/3883) - `~/.code[-<quality>]` (to prevent using 'vs' showing up in the OSS build as it is now) If we moved this it would probably require some discovery/migration on first launch of a newer version. --- The below is a living document. ## Proposed folder structure Notes: - I don't think we should be encouraging the use of admin rights within vscode, instead a permissions elevation dialog would probably be better than allowing a specific place for root user data #5561 - I want to clean up the whole `code` vs `vscode` thing in this change; only official builds should carry the visual studio branding, that should carry over to the config directories consistently as well. - The CLI args `--user-data-dir` and `--extensions-dir` will need to be adjusted for this, something like `--config-dir` and `--cache-dir` would probably be better. ### Windows **Old** ``` Settings: %APPDATA%\Code[ - Variant]\User\settings.json Keybindings: %APPDATA%\Code[ - Variant]\User\keybindings.json Snippets: %APPDATA%\Code[ - Variant]\User\snippets\ Workspace storage: %APPDATA%\Code[ - Variant]\User\workspa

Comments (0)

No comments yet. Start the discussion.

Comment on this issue