Live templates formatting issue (build 71)

Hello,

I have configured both VS text editor and Resharper to use tabs for
indentation. However, every time I insert any kind of live template ("loop"
for example), it uses spaces. This makes necessary to reformat the whole
file after every insertion.

The similar problem occures when the Ctrl+Space keystroke is pressed at the
begining of the line -- the current line of the source code becomes indented
with spaces and tab indentation is destroyed..

Thanks.


4 comments
Comment actions Permalink

Maxim,

There was a problem with indenting live templates using our code
formatter so they actually used custom indentation engine which didn't use
tabs. This is changed in build 72 so please download it when it is available
(should be on Tuesday) and tell us if it makes you happy.

--
Oleg Stepanov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Maxim Babenko" <mab@shade.msu.ru> wrote in message
news:c2b1lm$kpq$1@is.intellij.net...

Hello,

>

I have configured both VS text editor and Resharper to use tabs for
indentation. However, every time I insert any kind of live template

("loop"

for example), it uses spaces. This makes necessary to reformat the whole
file after every insertion.

>

The similar problem occures when the Ctrl+Space keystroke is pressed at

the

begining of the line -- the current line of the source code becomes

indented

with spaces and tab indentation is destroyed..

>

Thanks.

>
>


0
Comment actions Permalink

Build 72 doesn't appear to fix the problems with formatting with live
templates. It still doesn't appear to honor things like "keep brace on same
line".

-Tom

"Oleg Stepanov (JetBrains)" <Oleg.Stepanov@JetBrains.Com> wrote in message
news:c2cj7f$39m$1@is.intellij.net...

Maxim,

>

There was a problem with indenting live templates using our code
formatter so they actually used custom indentation engine which didn't use
tabs. This is changed in build 72 so please download it when it is

available

(should be on Tuesday) and tell us if it makes you happy.

>

--
Oleg Stepanov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Maxim Babenko" <mab@shade.msu.ru> wrote in message
news:c2b1lm$kpq$1@is.intellij.net...

Hello,

>

I have configured both VS text editor and Resharper to use tabs for
indentation. However, every time I insert any kind of live template

("loop"

for example), it uses spaces. This makes necessary to reformat the whole
file after every insertion.

>

The similar problem occures when the Ctrl+Space keystroke is pressed at

the

begining of the line -- the current line of the source code becomes

indented

with spaces and tab indentation is destroyed..

>

Thanks.

>
>

>
>


0
Comment actions Permalink

Ouch... Right. It works for surrounds only. Forgot to add "reformat"
attribute to normal live templates.

--
Oleg Stepanov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Tom Wagner" <Tom.Wagner@work.forbesfield.com> wrote in message
news:c37808$l24$1@is.intellij.net...

Build 72 doesn't appear to fix the problems with formatting with live
templates. It still doesn't appear to honor things like "keep brace on

same

line".

>

-Tom

>

"Oleg Stepanov (JetBrains)" <Oleg.Stepanov@JetBrains.Com> wrote in message
news:c2cj7f$39m$1@is.intellij.net...

Maxim,

>

There was a problem with indenting live templates using our code
formatter so they actually used custom indentation engine which didn't

use

tabs. This is changed in build 72 so please download it when it is

available

(should be on Tuesday) and tell us if it makes you happy.

>

--
Oleg Stepanov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Maxim Babenko" <mab@shade.msu.ru> wrote in message
news:c2b1lm$kpq$1@is.intellij.net...

Hello,

>

I have configured both VS text editor and Resharper to use tabs for
indentation. However, every time I insert any kind of live template

("loop"

for example), it uses spaces. This makes necessary to reformat the

whole

file after every insertion.

>

The similar problem occures when the Ctrl+Space keystroke is pressed

at

the

begining of the line -- the current line of the source code becomes

indented

with spaces and tab indentation is destroyed..

>

Thanks.

>
>

>
>

>
>


0
Comment actions Permalink

I mean: "will be fixed in 73"

--
Oleg Stepanov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Oleg Stepanov (JetBrains)" <Oleg.Stepanov@JetBrains.Com> wrote in message
news:c37ab4$42c$1@is.intellij.net...

Ouch... Right. It works for surrounds only. Forgot to add "reformat"
attribute to normal live templates.

>

--
Oleg Stepanov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Tom Wagner" <Tom.Wagner@work.forbesfield.com> wrote in message
news:c37808$l24$1@is.intellij.net...

Build 72 doesn't appear to fix the problems with formatting with live
templates. It still doesn't appear to honor things like "keep brace on

same

line".

>

-Tom

>

"Oleg Stepanov (JetBrains)" <Oleg.Stepanov@JetBrains.Com> wrote in

message

news:c2cj7f$39m$1@is.intellij.net...

Maxim,

>

There was a problem with indenting live templates using our code
formatter so they actually used custom indentation engine which didn't

use

tabs. This is changed in build 72 so please download it when it is

available

(should be on Tuesday) and tell us if it makes you happy.

>

--
Oleg Stepanov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Maxim Babenko" <mab@shade.msu.ru> wrote in message
news:c2b1lm$kpq$1@is.intellij.net...

Hello,

>

I have configured both VS text editor and Resharper to use tabs for
indentation. However, every time I insert any kind of live template

("loop"

for example), it uses spaces. This makes necessary to reformat the

whole

file after every insertion.

>

The similar problem occures when the Ctrl+Space keystroke is pressed

at

the

begining of the line -- the current line of the source code becomes

indented

with spaces and tab indentation is destroyed..

>

Thanks.

>
>

>
>

>
>

>
>


0

Please sign in to leave a comment.