Continue comment when enter is pressed
See original GitHub issue- VSCode Version: 1.12.1
- OS Version: Arch Linux
Steps to Reproduce:
- Open editor in a language that supports comments (say
foo.c
) - Type a line that starts with
//
- Press
enter
- Next line should automatically be started with
//
(or at least this should be possible to configure). Instead, the next line is empty.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:156
- Comments:14 (1 by maintainers)
Top Results From Across the Web
Continue comment when enter is pressed · Issue #26694
Open editor in a language that supports comments (say foo.c ) · Type a line that starts with // · Press enter ·...
Read more >visual studio continue multiline comment - c++ - Stack Overflow
One hack is to press Space Left Enter when at the end of a comment.
Read more >Automatically comment out a new line when enter is pressed
With the code string test = "this is a test"; if the cursor is put after “is” and the enter key is pressed,...
Read more >VS Code does this cool thing where if you press enter ... - Reddit
VS Code does this cool thing where if you press enter in the middle of a comment line it automatically ads a comment...
Read more >Can I disable continuation of comments to the next line in Vim?
An alternative is to just hit ctrl-w after you pressed enter . ... When I want to continue typing the next line in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This feature is provided by https://marketplace.visualstudio.com/items?itemName=kevinkyang.auto-comment-blocks, although disabled by default in the extension settings.
There should be a configurable editor option to do this, if it’s not default.
Very annoying to have to start comment on every line.