Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>narrowNew to Visual Studio Code? Get it now.
narrow

narrow

Philipp Brumm

|
33 installs
| (0) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

narrow

Code navigation inspired by atom-narrow

Running narrow.narrow-file shows a QuickPick listing of all lines in your current file. Type to narrow down to matching lines. Hit enter to move your cursor to the selected line.

using narrow to jump to a line

Running narrow.narrow-git shows a QuickPick listing of all lines which were added since your last commit to quickly jump to your most recent work in a file.

using narrow to jump to a line which was added since the last commit

Keyboard Shortcuts

Narrow does not assign keyboard shortcuts by default. Open your keyboard shortcuts json (Preferences: Open Keyboard Shortcuts (JSON)) and paste this snippet to get started:

{
  "key": "ctrl+f",
  "command": "narrow.narrow-file",
  "when": "editorTextFocus"
}
{
  "key": "ctrl+g",
  "command": "narrow.narrow-git",
  "when": "editorTextFocus"
}

Options

Screenshot 2024-07-27 at 15 30 10

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