Skip to content

Allow auto-close quotation marks per file type and global #25658

@Tekbr

Description

@Tekbr
  • VSCode Version: 1.12.0 - insiders
  • OS Version: Windows 10

-- Sorry for the English, I used Google Translator --

After a long conversation with @alexandrudima the same suggested that he open that issue.
@alexandrudima, I do not know if that's what you imagined .. so feel free to edit.

By default all single and double quotation marks should auto close if you have words + space.
By default all single and double quotation marks should not close if it is next to the word. For single quotes should be considered apostrophe.

Here are examples of how to share the quotes. Similiar to Atom and Sublime.

Eg1:
ex1

Eg2:
ex2

Allow the same to be set up separately for comments. (This is the javascript that auto closes single quotation marks in code, but not when used in comments.) By default it should follow the above rules.

There may be a question of syntactic and semantic, depending on the language. So let the resource by language.

There are still letters that allow you to have apostrophes along with single quotes. It does not interfere with semantics and maintains syntax highlighting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    *out-of-scopePosted issue is not in scope of VS Codeeditor-autoclosingEditor automatic closing of parens / brackets / etc.feature-requestRequest for new features or functionality

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions