This is Visual Studio Code extension, which provides commands for generating comment-wrapped separators from line content.
Supports all common languages.
https://marketplace.visualstudio.com/items?itemName=stackbreak.comment-divider
-
Default Shortcut:
Shift
+Alt
+X
-
Default Style:
/* -------------------------------------------------------------------------- */ /* Example text */ /* -------------------------------------------------------------------------- */
-
Default Shortcut:
Alt
+X
-
Default Style:
/* ------------------------------ Example text ------------------------------ */
-
Default Shortcut:
Alt
+Y
-
Default Style:
/* -------------------------------------------------------------------------- */
Extension uses relevant comment characters for all common languages.
For example, in python files subheader looks like
# ------------------------------ python example ------------------------------ #
or in html files
<!-- ---------------------------- html example ----------------------------- -->
// Set line length for all dividers.
"comment-divider.length": 80,
// "Set symbol for main header line filling (only one).
"comment-divider.mainHeaderFiller": "-",
// Set main header vertical style.
"comment-divider.mainHeaderHeight": "block",
// Set main header text align.
"comment-divider.mainHeaderAlign": "center",
// Set main header text transform style.
"comment-divider.mainHeaderTransform": "none",
// "Set symbol for subheader line filling (only one).
"comment-divider.subHeaderFiller": "-",
// Set subheader vertical style.
"comment-divider.subHeaderHeight": "line",
// Set subheader text align.
"comment-divider.subHeaderAlign": "center",
// Set subheader text transform style.
"comment-divider.subHeaderTransform": "none",
// Set symbol for solid line filling.
"comment-divider.line-filler": "-",
Request features and report bugs using GitHub.