question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Continue comment when enter is pressed

See original GitHub issue
  • VSCode Version: 1.12.1
  • OS Version: Arch Linux

Steps to Reproduce:

  1. Open editor in a language that supports comments (say foo.c)
  2. Type a line that starts with //
  3. Press enter
  4. 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:open
  • Created 6 years ago
  • Reactions:156
  • Comments:14 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
francoisferrandcommented, Jul 24, 2020

This feature is provided by https://marketplace.visualstudio.com/items?itemName=kevinkyang.auto-comment-blocks, although disabled by default in the extension settings.

3reactions
peeycommented, Jul 20, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found