I have different one but also with template... Every time I type "thr" template it indents next line of code after expansion:
//before: if (var == null) thr[tab]
nextLine(x);
//after: if (var == null) throw new |
nextLine(x); //shifted two indents to the right...
I cannot reproduce this kind of behavior with any other template - only "thr" works this way. And it's not related to if() statement. I have same results with just two lines of code like this:
//before: thr[tab] nextLine(x);
//after: throw new | nextLine(x);
Very strange... =(( Does anyone have similar problem?
Of course it's a known problem after I said you about it after reading this news article :)). -- Valentin Kipiatkov Chief Scientist, Vice President of Product Development JetBrains, Inc http://www.jetbrains.com "Develop with pleasure!"
Hello Sergey,
This is known problem and is already fixed (the fix will be available in build 106).
>> In biuld 105 when i press TAB after typing template shorcut, it will >> not deleted >> for example i type >> outv, then i press TAB and I've got >>
I have different one but also with template...
Every time I type "thr" template it indents next line of code after
expansion:
//before:
if (var == null)
thr[tab]
nextLine(x);
//after:
if (var == null)
throw new |
nextLine(x); //shifted two indents to the right...
I cannot reproduce this kind of behavior with any other template - only
"thr" works this way.
And it's not related to if() statement. I have same results with just two
lines of code like this:
//before:
thr[tab]
nextLine(x);
//after:
throw new |
nextLine(x);
Very strange... =((
Does anyone have similar problem?
Regards,
Chepel
"Sergey Kurdiukov" <no_mail@jetbrains.com> wrote in message
news:20158517.1092810514098.JavaMail.itn@is.intellij.net...
deleted
I have the same behaviour with foreach live template:
ArrayList list = new ArrayList();
foreach
return list
having the cursor after foreach I press tab and then the code become:
ArrayList list = new ArrayList();
foreachforeach(object
in
list)
{
}
return list;
Regards
Sergey Kurdiukov wrote:
--
Giorgio Santini
ERIS4
www.eris4.com
Hello Sergey,
This is known problem and is already fixed (the fix will be available in build 106).
--
Oleg Stepanov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Of course it's a known problem after I said you about it after reading this news article :)).
--
Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com "Develop with pleasure!"
>> In biuld 105 when i press TAB after typing template shorcut, it will
>> not deleted
>> for example i type
>> outv, then i press TAB and I've got
>>
>> instead of
>>
> System.Console.Out.WriteLine("xa = {0}", xa); >> ]]>