Adaptive CommentsThis extension improves how commenting works for single-line and multi-line blocks of code. Solutions that use VS Code's built-in This causes repeated shortcuts to drift across the code. What does this extension do?1. Comment and Caret placementAdaptive Comments smartly checks the surrounding lines to figure out where to place the comment, similar to how JetBrains IDEs do it. After that the caret is moved down at the same column, if possible. This makes it possible to repeatedly press the shortcut to comment a block of code without the caret drifting left or right.
2. Fixing empty uncommented linesWhen commenting out a block of code, VS Code does not comment empty lines. This extension fixes that, so the entire block is handled consistently.
UsageThe extension deliberately ships without default keybindings to avoid overriding or conflicting with shortcuts you already use. To use it, add a keybinding to your
RepoGitLab.com/EdCordata-REPOS/ide-plugins/vs-code-plugins/adaptive-comments BuildExtension can be built with docker.
LicenseSee the LICENSE.txt file for license information. |