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

Test language specific settings #1587 #19060

Closed
2 tasks done
sandy081 opened this issue Jan 23, 2017 · 0 comments
Closed
2 tasks done

Test language specific settings #1587 #19060

sandy081 opened this issue Jan 23, 2017 · 0 comments

Comments

@sandy081
Copy link
Member

sandy081 commented Jan 23, 2017

Test for #1587

Complexity: 3

Now you can configure editor settings for a language mode. You can configure it either

  • When you are selecting a language mode, by clicking the language in the status bar when a file is opened and selecting Configure settings for the language
  • Or use a global command Configure language specific settings... where you can select a language and configure settings for the language

Above actions opens the User settings file and inserts the language identifier key. Use intelli-sense and add/override settings. Test that these settings are applied only to those files whose associated language is the one you overridden settings for.

Example: In User Settings

"editor.lineNumbers": "off"
"[json]": {
   "editor.lineNumbers": "relative"
}

Above settings will not display line numbers for all files except for json files which display relative line numbers.

You can also configure language based settings in workspace settings. This will override respective language based settings in user settings.

Example: In Workspace Settings

"[json]": {
   "editor.lineNumbers": "on"
}

Above settings will display line numbers normally for json files

All editor.*, diffEditor.* and some files.* settings are allowed to override. These will be shown by intelli-sense. Try to configure them for different languages in user and workspace settings and test that these are getting applied correctly (workspace settings always override user settings).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants