Live Templates and C++ and Unit Testing

MS neglected to stick snippets into the C++ and R# does allow live templates
in C++ files which is fantastic.....the only trouble is with multi line
stuff it dosnt format it correctly, would be great if it did. It dosnt need
to fully support C++, but if it just did a little bit it would be
fantastically useful

Also, when you have the unit tester doced and it hides all the details, it
would be nice if a tool tip showed the error and the line, and an option to
jump to the line of code in the source, otherwise you need the window un
docked (or taking up way too much screen space) to be useful.


3 comments
Comment actions Permalink

Hello Keith,

What do you mean by "do a little bit of formatting"?

Oleg Stepanov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

MS neglected to stick snippets into the C++ and R# does allow live
templates in C++ files which is fantastic.....the only trouble is with
multi line stuff it dosnt format it correctly, would be great if it
did. It dosnt need to fully support C++, but if it just did a little
bit it would be fantastically useful

Also, when you have the unit tester doced and it hides all the
details, it would be nice if a tool tip showed the error and the line,
and an option to jump to the line of code in the source, otherwise you
need the window un docked (or taking up way too much screen space) to
be useful.



0
Comment actions Permalink

for example, in a C++ project, if you try and insert a template that is

for(int $VAR$ = 0; $VAR$ < $MAX$; ++$VAR$)
{
$END$
}

the brackets end up in odd hard on the left margin, and $END$ is not in a
nice tabbed position ready for editing...

The ide knows how to format the code, (format selection) so it wouldnt be
too hard to format it...at the moment you'd have to do this manually which a
lil ugly, or perhaps Im missing something :)

"Oleg Stepanov (JetBrains)" <Oleg.Stepanov@JetBrains.Com> wrote in message
news:55e77416421fce8c83cbf91e9186e@news.intellij.net...

Hello Keith,

>

What do you mean by "do a little bit of formatting"?
Oleg Stepanov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

>
>> MS neglected to stick snippets into the C++ and R# does allow live
>> templates in C++ files which is fantastic.....the only trouble is with
>> multi line stuff it dosnt format it correctly, would be great if it
>> did. It dosnt need to fully support C++, but if it just did a little
>> bit it would be fantastically useful
>>
>> Also, when you have the unit tester doced and it hides all the
>> details, it would be nice if a tool tip showed the error and the line,
>> and an option to jump to the line of code in the source, otherwise you
>> need the window un docked (or taking up way too much screen space) to
>> be useful.
>>
>



0
Comment actions Permalink

Hello Keith,

Well, even doing so little formatting requires sensible efforts if we decide
to do it ourselves. The only option is to ask Visual Studio to format code
in some files. Please submit a feature request for this.

Oleg Stepanov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

for example, in a C++ project, if you try and insert a template that
is

for(int $VAR$ = 0; $VAR$ < $MAX$; ++$VAR$)
{
$END$
}
the brackets end up in odd hard on the left margin, and $END$ is not
in a nice tabbed position ready for editing...

The ide knows how to format the code, (format selection) so it wouldnt
be too hard to format it...at the moment you'd have to do this
manually which a lil ugly, or perhaps Im missing something :)

"Oleg Stepanov (JetBrains)" <Oleg.Stepanov@JetBrains.Com> wrote in
message news:55e77416421fce8c83cbf91e9186e@news.intellij.net...

>> Hello Keith,
>>
>> What do you mean by "do a little bit of formatting"?
>> Oleg Stepanov
>> Software Developer
>> JetBrains, Inc
>> http://www.jetbrains.com
>> "Develop with pleasure!"
>>> MS neglected to stick snippets into the C++ and R# does allow live
>>> templates in C++ files which is fantastic.....the only trouble is
>>> with multi line stuff it dosnt format it correctly, would be great
>>> if it did. It dosnt need to fully support C++, but if it just did a
>>> little bit it would be fantastically useful
>>>
>>> Also, when you have the unit tester doced and it hides all the
>>> details, it would be nice if a tool tip showed the error and the
>>> line, and an option to jump to the line of code in the source,
>>> otherwise you need the window un docked (or taking up way too much
>>> screen space) to be useful.
>>>


0

Please sign in to leave a comment.