Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Smart SelectNew to Visual Studio Code? Get it now.
Smart Select

Smart Select

Lu-Jiejie

|
163 installs
| (0) | Free
Select the right code scope with double click.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Smart Select

Select the right code scope with double click.

Visual Studio Marketplace Version LICENSE

Usage

Double click somewhere in the code, and the extension will select the right scope for you.

Rules

More rules in the future...

js-arrow-function

Double click the center of => to select the entire arrow function.

                   ▼
const add = (a, b) => a + b
            └─────────────┘

js-assign

Double click near the = to select the entire assignment.

          ▼
const add = (a, b) => a + b
└─────────────────────────┘

js-block-statement

Double click the pre-defined keyword to select the entire block statement.

   ▼
function add(a, b) { return a + b }
└───────────────────────────────┘

 ▼
try { add(1, 2) } catch (e) {}
└────────────────────────────┘

Pre-defined keywords: try, catch, finally, do, for, while, if, else, switch, case, default, function, class.

js-block

Double click left of { to select the entire block.

                   ▼
function add(a, b) { return a + b }
                   └──────────────┘

js-import-export

Double click the import or export keyword to select the entire statement.

  ▼
import { add } from './math'
└──────────────────────────┘

  ▼
export function add(a, b) { return a + b }
└────────────────────────────────────────┘

Inspiration

Smart Clicks

~~Perhaps more user-friendly.~~

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft