Skip to content

dinhani/vscode-section-divider

Repository files navigation

Section Divider

This extension inserts horizontal section dividers using language comments.

Installs Rating Version

Example

Section Divider example Divider being added from the cursor position until the limit ruler.

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.

About

[vscode-ext] generate section dividers using comments

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published