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.

A space between line comment marker and the following text

See original GitHub issue

Currently, when I press Ctrl+/, there is no space between // and the text which follows it.

Most style guides advocate for this space, and so we are very used to use it. It will be useful to have an option to enable it.

Current behavior:

foo
becomes
//foo

// foo
becomes
 foo (with a space in the beginning; bad)

Requested behavior (optional):

foo
becomes
// foo

// foo
becomes
foo

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ahus1commented, Oct 4, 2021

Done! Happy coding … please feel free to ask questions, I’ll assist!

0reactions
ahus1commented, Oct 3, 2022

As I needed to fix a performance regression, this has been release a bit earlier than expected as 0.37.52 and is now already available from the JetBrains marketplace. Enjoy!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Space between line-comment character(s) and start of actual ...
Inline comments should be separated by at least two spaces from the statement. They should start with a # and a single space....
Read more >
Single-line and Multi-line Comments in C# | Pluralsight
Single-line comments can begin in any column of a given line and end at a new line or carriage return. The // character...
Read more >
HTML Tutorial for Beginners - 02 - Line breaks, spacing, and ...
In this video we go over adding line breaks, spacing, and commentsto your HTML code.HTML Source: http://pastebin.com/iNPvhaYE.
Read more >
Paragraphs, Lines, and Phrases
Note that a sequence of white spaces between words in the source document may result in an entirely different rendered inter-word spacing (except...
Read more >
spaced-comment - ESLint - Pluggable JavaScript Linter
Some style guides require or disallow a whitespace immediately after the initial // or /* of a comment. Whitespace after the // or...
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