You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enter inside a comment should start a comment on the next line. #180551
Aiday Marlen Kyzy (@aiday-mar) Is there a way to disable this? Most of the time I am working with comments I do not want the next line to also be commented.
To me it makes sense to continue the comment when pressing enter while there are letters after the caret, but if the caret is at the end it should not add a // to the following line.
Hi Robert Ostermann (@RobertOstermann) thanks for the comment. This behavior has changed and now it behaves as what you mentioned, that is a comment is added when there are letters after the cursor position on the current line. You should see this in the latest insiders
Activity
CyrusNajmabadi commentedon Apr 27, 2023
Alexandru Dima (@alexdima) lmk if there's any information you need from us on this.
alexdima commentedon Apr 28, 2023
This is a nice idea and can be achieved by adding the following rule to
onEnterRulesin the language configuration:Kapture.2023-04-28.at.09.28.21.mp4
17 remaining items
RobertOstermann commentedon Nov 7, 2024
Aiday Marlen Kyzy (@aiday-mar) Is there a way to disable this? Most of the time I am working with comments I do not want the next line to also be commented.
To me it makes sense to continue the comment when pressing enter while there are letters after the caret, but if the caret is at the end it should not add a
//to the following line.aiday-mar commentedon Nov 8, 2024
Hi Robert Ostermann (@RobertOstermann) thanks for the comment. This behavior has changed and now it behaves as what you mentioned, that is a comment is added when there are letters after the cursor position on the current line. You should see this in the latest insiders
starball5 commentedon Nov 11, 2024
The case with no text after caret is covered by #26694.
iwangbowen commentedon Nov 30, 2024
Why it took so long add this feature
aoyama-val commentedon Dec 15, 2024
Is there a plan to enable this also when the cursor is at the end of line?
aiday-mar commentedon Dec 16, 2024
Hi aoyama-val (@aoyama-val) thank you for the comment. For the moment there is no such plan.
CyrusNajmabadi commentedon Dec 16, 2024
Bowen Wang (@iwangbowen)
Resourcing and other priorities. Note: this is all open source. So if this is something you are passionate about, we welcome community contributions.
CyrusNajmabadi commentedon Dec 16, 2024
This also matches VS behavior, which was driven on tons of feedback to have this behavior.