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

Feature Request: Define settings for a set of folders #38162

Closed
lukaszpolowczyk opened this issue Nov 12, 2017 · 5 comments
Closed

Feature Request: Define settings for a set of folders #38162

lukaszpolowczyk opened this issue Nov 12, 2017 · 5 comments
Assignees
Labels
config VS Code configuration, set up issues *duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality
Milestone

Comments

@lukaszpolowczyk
Copy link

lukaszpolowczyk commented Nov 12, 2017

This is feature-request and settings

Steps to Reproduce:

  1. Create workspace.
  2. In "project/.vscode/settings.json" set:
    { "include": ["${commonWorkspacesSettingsFolder}/my-js-common-settings.json"] }
    Where: ${commonWorkspacesSettingsFolder} is new "(...)/Code/CommonWorkspaceSettings" folder in User Settings.
    and user created "my-js-common-settings.json" file is import settings to this workspace.

Modifying "my-js-common-settings.json" changes settings for each workspace that will import this file.
This is something other than global user settings for the entire VS Code.
These are settings for similar projects, similar in many ways.

  1. The imported settings may be overwritten in the "project/.vscode/settings.json" file.
    Example "my-js-common-settings.json" file:
    { "window.zoomLevel": 0, "editor.fontSize": 13 }
    Example "project/.vscode/settings.json" file:
    { "include": ["${commonWorkspacesSettingsFolder}/my-js-common-settings.json"], "editor.fontSize": 14, "files.autoSave": "afterDelay" }

Value 14 overwrite value 13 from "my-js-common-settings.json" file in "editor.fontSize" setting.
Setting "window.zoomLevel": 0 is common for workspaces.
Setting "files.autoSave": "afterDelay" is own for this workspace.

@vscodebot vscodebot bot added the workbench label Nov 12, 2017
@bpasero bpasero added feature-request Request for new features or functionality settings-editor VS Code settings editor issues and removed workbench labels Nov 13, 2017
@bpasero bpasero assigned sandy081 and unassigned bpasero Nov 13, 2017
@sandy081
Copy link
Member

@lukaszpolowczyk Can you please explain what will this new feature request achieve which cannot be done by current solution?

@sandy081 sandy081 added the info-needed Issue requires more information from poster label Nov 13, 2017
@lukaszpolowczyk
Copy link
Author

lukaszpolowczyk commented Nov 13, 2017

sandy081

There are Global Settings - working on everything.
There is a setting for the Project / Folder - working only there.

Currently:

  • Creates a project
  • I set the settings for the project
  • I do another, similar project
  • I copy the settings file from the first project
  • Paste the settings file into a new similar project
  • I modify slightly, or not all settings for new project (there are some differences)
  • I want to change the setting common to the first and new project
  • I have to change the setting in one and the other setting file (sometimes I forget it, something works differently, unnecessary confusion)
  • I create a third project - he has no common law with the first or second project - so these settings can not be in Global settings!

With my proposition:

  • I create a project
  • Set the setting for the project
  • I do another similar project
  • Set include and create a common file from this file (automatically placed in the" Code/commonSettings" folder - you need new "Create from this new CommonSetting" button in the Settings tab for Wokspace).
  • As I want to change something in common, I change in CommonSettings
  • Done.
  • The third project has its own settings, unlike the two projects. There is no problem.

@sandy081 sandy081 changed the title Workspace "include" setting to import common settings file, commonWorkspaceSettings folder and variable. Feature Request: Define settings for a set of folders Nov 13, 2017
@sandy081 sandy081 removed the info-needed Issue requires more information from poster label Nov 13, 2017
@sandy081 sandy081 added this to the Backlog milestone Nov 13, 2017
@sandy081 sandy081 added config VS Code configuration, set up issues and removed settings-editor VS Code settings editor issues labels Nov 17, 2017
@earshinov
Copy link

Another use case is synchronizing your settings across multiple computers.

For example, I would like to share most of my settings between work and home machines, except the font size. If the "include" setting was available, I could extract the common settings to a separate file, put the file into my Dropbox folder, and then "include" it into settings.json on my two machines.

@sandy081
Copy link
Member

/duplicate

#15909

@vscodebot vscodebot bot added the *duplicate Issue identified as a duplicate of another issue(s) label Mar 16, 2020
@vscodebot
Copy link

vscodebot bot commented Mar 16, 2020

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 existing issues here. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this as completed Mar 16, 2020
@github-actions github-actions bot locked and limited conversation to collaborators May 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
config VS Code configuration, set up issues *duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

4 participants