Adding blank lines between consequents statements

Hello

I can't seem to be able to find the setting to automatically have the code cleanup add 1 blank line between consequent statements? I am using R# 4.5...

Eg.

if(... == ...)
{
     ...
}
// Blank line here
if(... == ...)
{
     ...
}
// Blank line here
using(....)
{
     ...
}
// Blank line here

Is this normally possible?

Thanks in advance

3 comments

Hello.

I can't seem to be able to find the setting to automatically have the
code cleanup add 1 blank line between consequent statements? I am
using R# 4.5...


Could you supply more detailed description of what you want? Should blank
line be inserted after statement without braces? Separate different variable
declaration statements? Are there any formal rules?


0

Just a blank line after a statement that uses braces, for, foreach, if, while, using ...

using(...)
{
     ...
}
<-- Blank line
if(...)
{
     ...
}
<-- Blank line

Nothing fancy or complex really.

0

+1 for adding blank lines before and after code blocks.

"Gabriel Lozano-Moran" <no_reply@jetbrains.com> wrote in message
news:2462070.81961245006110281.JavaMail.clearspace@app8.labs.intellij.net...

Just a blank line after a statement that uses braces, for, foreach, if,
while, using ...

>

using(...)
{
...
}
<-- Blank line
if(...)
{
...
}
<-- Blank line

>

Nothing fancy or complex really.

>

---
Original message URL:
http://www.jetbrains.net/devnet/message/5240018#5240018


0

Please sign in to leave a comment.