Alternative
Amazon
Article
Writing
Art
AI
Angular
Photoshop
Premiere
Animal Crossing
Blog
Story
Android
Android Studio
Davinci Resolve
CSS
Clipchamp
ChatGPT
Crypto
DALL-E
Discord
Davinci Resolve
Davinci Resolve 18
Dream Studio
Express
Filmora
Flutter
PC Games
Git
GPT
GPT3
GPT4
GTA
GTA 6
Ghost Together
Ghost Together
HTML
iOS
iMovie
Illustrator
JavaScript
Mac
Mongo
Midjourney
Minecraft
Node.js
NBA 2k24
OSX
PHP
Palworld
Python
Playground AI
Roblox
React
Recipe (Cooking)
React Native
Semicolon.dev
Starfield PC Game
Snapchat
Steam
Stable Diffusion
SVG
Threads
Text To Image (AI)
VSCode
Vim
Web Development
Windows
WebGL
Vscode Tutorials

    VSCode Keyboard Shortcut: Shrink and Expand Text Selection

    #vscode #visual studio code #keyboard shortcut #key #binding
    viewed 694 times
    › vscode › shrink or expand text selection

    Shrink or Expand current text selection is a Visual Studio Code keyboard shortcut that works like a text selection flood algorithm around important quotes, scopes and brackets.

    You can expand or contract text selection around closest single or double quotes, brackets, braces, HTML tags, JavaScript function and other block scopes. It can expand in both directions.

    This shortcut is useful for quickly selecting parent scope without touching the mouse. (For example if you need to select to copy or delete entire contents of a parent scope.) And that's just one example!

    To get started, first make any text selection (it can be just a single text character, a word or space between brackets.) Then follow instructions below:

    Shrink or Expand current text selection in Visual Studio Code (keyboard shortcut)

    To shrink or expand text selection press and hold Alt + Shift keys and use left and right arrow keys to either minimize or expand current selection.

    How to shrink or expand text selection in VSCode:

    To expand or shrink selection use following steps:

    1. Select quoted text, a single line of code, a function or a similar scope.
    2. Press and hold Alt + Shift keys.
    3. Use left arrow and right arrow keys to expand or shrink selection.
    4. The selection will stop at nearest double quotes, inner scope, parent scope, etc.

    VSCode Keyboard Shortcut: How to Shrink or Expand Text Selection

    This video visually explains how to shrink or expand your VSCode text selection with automatic stopping points around important scope limits.

    Get Ghost Messenger
    Sign Up Now  -  It's Free!
    Write For Us
    Sign Up Now  -  It's Free!

    VSCode Keyboard Shortcut: Shrink and Expand Text Selection

    Comments (2) New! (You can now post comments on articles!)

    (By posting a comment you are registering a Ghost Together account.)
    Register
    Register
    Post It
    DM Coming Soon
    f f