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

Focus

Ivo Barros

|
4,330 installs
| (4) | Free
Hide everything but selected text
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Focus

Hide all unselected text, so you can write your code without distractions.

How to use

Focusing section

  1. Select some code
  2. Use the command "Focus"

Unfocusing section

  1. Deselect text (by just pressing anywhere in the text)
  2. Use the command "Focus"

tip: bind command to a key for ease

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