Visual Studio Macro to Indent C/C++ Braces -


We have an old project that we maintain which uses brace indentation every time I switch projects Instead, instead of changing my visual studio options, I want to be able to do it quickly and easily.

I am trying to write a macro in Visual Studio to turn bras indenting on and off.

The checkbox is in the text editor -> C / C ++ -> formatting

Indentation: Indent braces

This does not work:

  DTE.Properties ("TextEditor", "C / C ++"). Items ("IndentBraces"). Value = true  

I think "value does not come within the expected range."

Any ideas? I can not find anything on this.

I have found that this is the right macro code to perform this task

  DTE.Properties ("TextEditor", "C / C ++ Specific") Items ("IndentBraces"). See value = true  

: "" which is only lightweight in this situation, but I got enough clues to find it.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -