Vscode: [feature] Quote selected text

Created on 25 Oct 2016  Â·  9Comments  Â·  Source: microsoft/vscode

  • VSCode Version: Code 1.6.1 (9e4e44c19e393803e2b05fe2323cf4ed7e36880e, 2016-10-13T15:27:10.246Z)
  • OS Version: Darwin x64 16.0.0
  • Extensions: DotJoshJohnson.xml-1.6.0, Shan.code-settings-sync-2.3.3, donjayamanne.python-0.5.0, groksrc.haml-0.0.2, lukehoban.Go-0.6.45, ms-vscode.csharp-1.4.1, rebornix.Ruby-0.10.1

Steps to Reproduce:

  1. Select text
  2. Type ", ', or any other bounding character
  3. Text is replaced

SublimeText (and other editors) wrap the selected text with quote or such character (both single and double quotes).

needs more info

Most helpful comment

@joaomoreno I'm curious why you say that this doesn't make sense in plain-text mode? Atom and Sublime both support this in plain text. I often use this feature in Atom as a sort of scratch-pad (e.g. for quoting a bunch of lines of text all at once).

untitled

All 9 comments

This feature is only active in some modes, since there are modes in which it would't make sense.

It works for JavaScript, TypeScript, C#, etc...

What mode are you trying it on?

@joaomoreno It most definitely _does not_ work in C# mode. Is it possibly a recent regression?

Oh yeah... looks like one, can you file an issue on https://github.com/OmniSharp/omnisharp-vscode/issues?

FYI, it's not working on the Plain Text module either.

/cc @joaomoreno

@wprater Plain Text isn't a mode in which it makes sense to have this.

alright. I'm just used to it from another editor. no worries!

On Fri, Nov 4, 2016, 00:25 João Moreno [email protected] wrote:

@wprater https://github.com/wprater Plain Text isn't a mode in which it
makes sense to have this.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/vscode/issues/14484#issuecomment-258360965,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAAo1GCqqMhLa5eITOmUwgCZV3TyBez2ks5q6t3OgaJpZM4KgZFe
.

@joaomoreno this doesn't work with Mac US International - PC keyboard.
In Atom works with ' + space

@joaomoreno I'm curious why you say that this doesn't make sense in plain-text mode? Atom and Sublime both support this in plain text. I often use this feature in Atom as a sort of scratch-pad (e.g. for quoting a bunch of lines of text all at once).

untitled

@grahamb Created #32616

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chrisdias picture chrisdias  Â·  3Comments

philipgiuliani picture philipgiuliani  Â·  3Comments

sirius1024 picture sirius1024  Â·  3Comments

NikosEfthias picture NikosEfthias  Â·  3Comments

DovydasNavickas picture DovydasNavickas  Â·  3Comments