Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be able to maintain separate settings, keybindings, and snippet files, and include them with a directive #156496

Closed
akharrou opened this issue Jul 27, 2022 · 3 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) user-profiles User profile management

Comments

@akharrou
Copy link

akharrou commented Jul 27, 2022

be able to define separate setting, keybinding, and snippet, module files:

// ~/.config/code/settings/commons.json
{
    "editor.insertSpaces": false,
    "editor.tabSize": 16,
    ...
}

// ~/.config/code/keybindings/commons.json
{
    ...
}

// ~/.config/code/snippets/python.json
{
    ...    
}

and then be able to include them in other setting, keybinding, and snippet files, keeping everything clean and simple:

// settings.json
{
    "include": "~/.config/code/settings/commons.json"
    "include": "~/.config/code/settings/theme-base16.json",
    "include": "~/.config/code/settings/lang-python.json",
    "include": "~/.config/code/settings/lang-javascript.json",
    ...
}
// keybindings.json
{
    "include": "~/.config/code/keybindings/commons.json"
    ...
}
// snippets/python.json
{
    "include": "~/.config/code/snippets/python.json"
    ...
}

and then in some other profile setting, instead of copy pasting from one place to another, and having to go back and maintain 10 profiles, just include the setting modules I want for that specific profile, and just edit the separate modules and have everything automatically reflected throughout all setting profiles:

// settings.json (profile: school)
{
    "include": "~/.config/code/settings/commons.json"
    "include": "~/.config/code/settings/theme-monkai.json",
    "include": "~/.config/code/settings/lang-java.json",
    ...
}
// keybindings.json (profile: school)
{
    "include": "~/.config/code/keybindings/commons.json"
    ...
}
// snippets/java.json (profile: school)
{
    "include": "~/.config/code/snippets/java.json"
    ...
}
// settings.json (profile: work)
{
    "include": "~/.config/code/commons.json"
    "include": "~/.config/code/theme-one-dark.json",
    "include": "~/.config/code/lang-c.json",
    "include": "~/.config/code/lang-cpp.json",
}
...

you get the point

@akharrou akharrou changed the title directive to include module setting files As maintainer of setting profiles, be able to maintain separate setting, keybinding and snippet modules, separately and include them in setting profiles Jul 27, 2022
@akharrou akharrou changed the title As maintainer of setting profiles, be able to maintain separate setting, keybinding and snippet modules, separately and include them in setting profiles As maintainer of setting profiles, be able to maintain separate setting, keybinding and snippet modules, separately and include them in setting profiles, to spare one from agony Jul 27, 2022
@akharrou akharrou changed the title As maintainer of setting profiles, be able to maintain separate setting, keybinding and snippet modules, separately and include them in setting profiles, to spare one from agony As maintainer of multiple setting profiles, be able to maintain separate setting, keybinding and snippet modules, separately and include them in setting profiles, to spare one from agony Jul 27, 2022
@akharrou akharrou changed the title As maintainer of multiple setting profiles, be able to maintain separate setting, keybinding and snippet modules, separately and include them in setting profiles, to spare one from agony As maintainer of multiple setting profiles, be able to maintain setting, keybinding, and snippet, module files, separately and include them in setting profiles, to spare one from agony Jul 27, 2022
@akharrou akharrou changed the title As maintainer of multiple setting profiles, be able to maintain setting, keybinding, and snippet, module files, separately and include them in setting profiles, to spare one from agony As maintainer of multiple setting profiles, be able to maintain setting, keybinding, and snippet, module files, separately and include them in setting profiles, to spare oneself from agony Jul 27, 2022
@akharrou akharrou changed the title As maintainer of multiple setting profiles, be able to maintain setting, keybinding, and snippet, module files, separately and include them in setting profiles, to spare oneself from agony Be able to maintain separate separate settings, keybindings, and snippet files, and include them with a directive Jul 27, 2022
@akharrou
Copy link
Author

akharrou commented Jul 27, 2022

thousands of less sophisticated software have this ability, why is this not in vscode yet ?

@sandy081 sandy081 added the user-profiles User profile management label Jul 28, 2022
@sandy081
Copy link
Member

/duplicate

Seems similar to #156144

@vscodenpa vscodenpa added the *duplicate Issue identified as a duplicate of another issue(s) label Jul 28, 2022
@vscodenpa
Copy link

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.

Happy Coding!

@akharrou akharrou changed the title Be able to maintain separate separate settings, keybindings, and snippet files, and include them with a directive Be able to maintain separate settings, keybindings, and snippet files, and include them with a directive Jul 28, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Sep 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) user-profiles User profile management
Projects
None yet
Development

No branches or pull requests

4 participants