🇰🇷 한국어
Instantly select the nearest enclosing logical block — function, arrow function, if/else, loop, JSX element — with a single keystroke.
Place your cursor anywhere inside a block, then press:
| Platform | Shortcut |
|---|---|
| Windows / Linux | Shift+Alt+S |
| macOS | Shift+Alt+S |
The entire enclosing block is selected. Press again to expand to the next outer block.
functiondeclarations and expressions- Arrow functions (
const fn = () => {}— selects the fullconststatement) if/else if/elsechainsfor,for...in,for...ofloopswhileanddo...whileloops- JSX elements, self-closing elements, and fragments (
<>...</>) returnstatements
- TypeScript (
.ts) - TypeScript + JSX (
.tsx) - JavaScript (
.js) - JavaScript + JSX (
.jsx)
Smart Block Select uses the TypeScript compiler API to parse your file into an AST (Abstract Syntax Tree) and finds the innermost supported block node containing your cursor. No language server required — it works instantly on any file.
| Command | Description |
|---|---|
Smart Block Select: Select Block |
Select the block containing the cursor |
This extension has no configurable settings.
MIT
