microsoft / microsoft/vscode-cmake-tools
[Feature] Support toggling CMake bracket comments in VS Code
- 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
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