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

Add language-specific _language settings_ #50087

Closed
lunelson opened this issue May 18, 2018 · 1 comment
Closed

Add language-specific _language settings_ #50087

lunelson opened this issue May 18, 2018 · 1 comment
Assignees
Labels
feature-request Request for new features or functionality languages-basic Basic language support issues *out-of-scope Posted issue is not in scope of VS Code

Comments

@lunelson
Copy link

Although vscode has (as of recently) language-specific editor settings, I would like to request language-specific language settings i.e. the ability to override definitions in a language's language-configuration.json file (found in vscode/extensions/[language]/).

For example let's say I would like to set the backtick as a "surrounding pair" character in pug, so I can select some text and mark it as an es6 string literal by hitting backtick (like I can do in JavaScript), and not have the backtick character replace the selection: ideally, as a setting, this would require only something like this in my "User Settings" file, to override pug's surroundingPairs definition:

  "[pug]": {
    "surroundingPairs": [
      ["{", "}"],
      ["[", "]"],
      ["(", ")"],
      ["`", "`"],
      ["'", "'"],
      ["\"", "\""]
    ],
  },
@vscodebot vscodebot bot added editor editor-core Editor basic functionality labels May 18, 2018
@alexdima alexdima added languages-basic Basic language support issues feature-request Request for new features or functionality and removed editor-core Editor basic functionality labels May 25, 2018
@alexdima
Copy link
Member

I think this is best handled by tweaking the pug surrounding pairs. Surrounding pairs for a language should be based on the syntax of said language. So, if ` are used for strings in pug, then ` should be in the surrounding pairs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality languages-basic Basic language support issues *out-of-scope Posted issue is not in scope of VS Code
Projects
None yet
Development

No branches or pull requests

2 participants