Automatically generates styled comment sections from your selection.
events
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
// =- E V E N T S -=
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Supports all languages and comment types.
Installing
You can install the latest version of the extension via the Visual Studio Marketplace
Alternatively, open Visual Studio code, press Ctrl+P
or Cmd+P
and type:
> ext install coolcommentsections
Source Code
The source code is available on GitHub lightSoulDev/vs-code-comment-sections.
Configuration
coolcommentsections.params
"default": {
// Width of comment section
// Not encluding language comment chars
"blockLenght" : 50,
// Don't add upper and bottom diviers
// Examples:
// [false]: "// =-=-=-=-=-=-=-= "
// "// =- selection -= "
// "// =-=-=-=-=-=-=-= "
//
// [true]: "// =- selection -= "
"singleLine" : false,
// Main divider style
"divider" : "=-",
// Trim section size based on divider
// Examples:
// [false]: "// =-=-=-=- "
// [true]: "// =-=-=-= "
"adjustDivider" : true,
// Add MARK: prefix for VS Code section navigation
// Examples:
// [false]: "// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= "
// "// =- S E L E C T I O N -= "
// "// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= "
// [true]: "// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= "
// "// =- M A R K : S E L E C T I O N -= "
// "// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= "
"useMark" : false,
// Convert selection to uppercase
// Examples:
// [false]: "// =- selection -= "
// [true]: "// =- SELECTION -= "
"makeUppercase" : true,
// Add spacing between characters
// Examples:
// [false]: "// =- SELECTION -= "
// [true]: "// =- S E L E C T I O N -= "
"addSpacing" : true
}