dotnet / dotnet/fsharp

`[editor feature]` hitting new line amidst a single line comment should put the remaining of the line after `// ` of the inserted new line

Open
#16,289 0 comments 1 reaction 0 assignees View on GitHub
Area-VS-Editor Feature Request
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 11h
Merged PRs (30d)
131

Description

```fsharp
// some very very very long comment on a single line
```

* when I put the caret in the comment and hit the enter key, it would be convenient for the remaining of the comment to be prefixed by `// ` on the new line
* bonus: pressing enter again at end of single line comment could create the line with empty `// ` selected, if user press non enter key that is meant as character input, it puts it as continuation to it, if enter is pressed again, it erases the "empty line" that was just inserted and goes out of inputing single line comments, all while remaining on the line (to not introduce empty line after the single line comment that is now completed)
* bonus: turn single line comment to multiline and back with code gestures

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.