Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Section DividerNew to Visual Studio Code? Get it now.
Section Divider

Section Divider

Dinhani

|
10,098 installs
| (7) | Free
Inserts horizontal section dividers using language comments.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Section Divider

This extension inserts horizontal section dividers using language comments.

Section Divider example

Usage

Command Shortcut Description
Divider: Add H1 Divider Alt+D insert a level 1 divider with the configured number of lines
Divider: Add H2 Divider Ctrl+Alt+D insert a level 2 divider with the configured number of lines
Divider: Add H1 Divider - One Line insert a level 1 divider with only one line
Divider: Add H2 Divider - One Line insert a level 2 divider with only one line

Configuration

// Text that will be used to fill the level 1 (H1) section divider lines.
"divider.text.level1": "=",

// Text that will be used to fill the level 2 (H2) section divider lines.
"divider.text.level2": "-",

// Last character column the section divider will reach.
"divider.endColumn": 80,

// Number of lines the section divider will have.
"divider.lines": 3

// Overrides language default comment characters with custom characters.
"divider.overrides {
    "java": ["/*", "*/"]
}

Feedback

Request features and report bugs using GitHub.

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