Skip to content

dbankier/vscode-quick-select

Repository files navigation

vscode-quick-select

Yes I know about the ⌃⇧⌘← and ⌃⇧⌘→ expand/shrink selection. Having come from VIM I think these are still missing.

It now supports multilines automatic selection, matching correctly.

NEW: you can also now toggle single/double quotes

See the examples below.

Installation

Press F1 and narrow down the list commands by typing extension. Pick Extensions: Install Extension. Select the Quick and Simple Text Selection extension from the list

Manual Install

Mac & Linux

cd $HOME/.vscode/extensions

Windows

cd %USERPROFILE%\.vscode\extensions

All Platforms

git clone https://github.com/dbankier/vscode-quick-select.git
cd vscode-quick-select
npm install

Usage

Here some examples - and it supports multiple selections.

In the examples below use CTRL instead of for Windows.

k "

doublequotes

k '

singlequotes

NEW: You can also use this following shortcut to select either single, double quotes or backticks

k ;

NEW: You can also use this following shortcut to toggle quotes, e.g. "word" to 'word'

k :

NOTE: the extensions can be configured to exclude backticks from selection or switching

k `

singlequotes

k ( and k [ and k {

Using the following performs and outer selection:

k ) and k ] and k }

Or if you have already made in inner selection, use the same key combination again to expand to an outer selection.

brackets

k <

This also selects the matching tag.

k >

This matches the tag value.

brackets

Customisation

extension.selectSingleQuote
extension.selectDoubleQuote
extension.selectEitherQuote
extension.switchQuotes
extension.selectParenthesis
extension.selectBackTick
extension.selectSquareBrackets
extension.selectCurlyBrackets
extension.selectParenthesisOuter
extension.selectSquareBracketsOuter
extension.selectCurlyBracketsOuter
extension.selectAngleBrackets
extension.selectInTag

License

MIT © David Bankier @dbankier

About

Quick and Simple Jumping Text Selection

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published