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

Focus

QuanLi

|
13,534 installs
| (5) | Free
Help you focus on the code you are editing by highlighting relevant sections.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Focus

Visual Studio Marketplace Installs Visual Studio Marketplace Rating

Highlight code you are focused on.

Usage

Features

  • Highlight some lines around the cursor, and control how many lines.
  • Highlight some lines that are wrapped in "{}", and control the level of "{}".

Usage

  • Install it.

Configuration

Set how your code should be highlighted:

"focus.highlightRange":"block"  //Highlight code block which is ranged by `{` and `}`
"focus.highlightRange":"fixed"  //Highlight line count by configuration
"focus.highlightRange":"none"   //Disable highlight

When set to block, the configuration below controls the level of "{}":

"focus.autoMatchLevel":-1

When the level is set to fixed, configure how many lines to highlight:

"focus.highlightLines":5

Configure opacity:

"focus.opacity":0.7 //number between (0,1)

Change Log

See Change Log here

Issues

Submit the issues if you find any bug or have any suggestions.

Contributing

Fork the repo and submit pull requests.

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