microsoft / microsoft/vscode-cmake-tools

[Feature] Support toggling CMake bracket comments in VS Code

Open Beginner friendly
#5,063 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
1.7k
Forks
546
Avg merge
2d 16h
Merged PRs (30d)
32

Description

### Request Overview

CMake Tools registers only lineComment: "#" in its VS Code language
configuration. CMake supports bracket comments #[[ ... ]], but VS Code's
Toggle Block Comment command does nothing.

Suggested fix in src/extension.ts:

comments: {
lineComment: "#",
blockComment: ["#[[", "]]"]
}

### Additional Information

_No response_

Contributor guide

Open the contributing guide

Research direction

Open src/extension.ts and find the CMake language configuration's comments entry. Add support for the bracket comment delimiters described in the issue, then verify in VS Code that Toggle Block Comment works for CMake #[[ ... ]] comments while line comments still use #.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, typescript, vscode
Domain
build-system, tooling
Issue type
Feature
Difficulty
1/5
Estimated time
Under an hour
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
92/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.