A Feature Request

say your looking at:
if(true)
foo();

when you open a brace like so:
if(true){
foo();

it autocompletes:
if(true){}
foo();

can it automatically figure out if there is already a statement and do the
obvious:
if(true){
foo();
}

That would be hot.


1 comment
Comment actions Permalink

Hi Eric,

The first release of brace auto-insertion works as you suggest now, and
after some time this behavour becomes very annoying for all us. Currently
another brace will be positioned as you like in the following case:

if(true)
{foo();

-


>>>>> leads to


if(true)
{foo();}

-


>>>>> and press ENTER
if(true)
{
foo();
}

(this result depends on your coding style)


--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Eric Weinschenk" <eweinschenkAT@owenoke.com> wrote in message
news:cas9uo$c73$1@is.intellij.net...

say your looking at:
if(true)
foo();

>

when you open a brace like so:
if(true){
foo();

>

it autocompletes:
if(true){}
foo();

>

can it automatically figure out if there is already a statement and do the
obvious:
if(true){
foo();
}

>

That would be hot.

>
>


0

Please sign in to leave a comment.