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

Better brackets and double-quotes (highlight, auto-close, surround) #255

Open
htho opened this issue Nov 26, 2024 · 0 comments
Open

Better brackets and double-quotes (highlight, auto-close, surround) #255

htho opened this issue Nov 26, 2024 · 0 comments

Comments

@htho
Copy link

htho commented Nov 26, 2024

🤔 What's the problem you're trying to solve?

When I edit a feature file and I want to wrap a word/sentence in double-quotes, I mark the word and type ". The word is replaced by the ". For most other languages VS-Code wraps the word in ". This would be very convenient.

Also:

✨ What's your proposed solution?

Update the language-configuration.json to support these features:

{
  "comments": {
    "lineComment": "#"
  },
  "brackets": [
    ["<", ">"],
    ["(", ")"]
  ]
  "autoClosingPairs": [
    ["<", ">"],
    ["(", ")"],
    ["\"", "\""],
    ["\"\"\"", "\"\"\""],
    ["```", "```"]
  ],
  "surroundingPairs": [
    ["<", ">"],
    ["(", ")"],
    ["\"", "\""],
    ["\"\"\"", "\"\"\""],
    ["```", "```"]
  ]
}

⛏ Have you considered any alternatives or workarounds?

It would be silly to edit the file locally.

📚 Any additional context?

This is the documentation for the file:
https://code.visualstudio.com/api/language-extensions/language-configuration-guide

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

No branches or pull requests

1 participant