Has anyone written a Visual Studio macro to automatically match style guide indentation rules?

60 views
Skip to first unread message

Chris Bentzel

unread,
Feb 22, 2010, 11:20:33 AM2/22/10
to chromi...@chromium.org
google-c-style.el is extremely helpful for auto-correcting indentation issues. 

I'm wondering if someone's done similar work for VS (specifically VS2008). http://dev.chromium.org/developers/how-tos/visualstudio-tricks lists a few tricks, but even with these Visual Studio still auto-indents in a non-compliant style. I'm fairly new to VS so it's possible this just can't be done.




Mike Belshe

unread,
Feb 22, 2010, 11:28:42 AM2/22/10
to cben...@chromium.org, chromi...@chromium.org
Would be a neat trick if you can do it; early on we had a few macros which some of us used, but nothing on that scale.  In general, the VS macro environment is pretty treacherous.  If you're both a voodoo witchdoctor and also a programmer, you might have good luck! :-)

Mike


On Mon, Feb 22, 2010 at 8:20 AM, Chris Bentzel <cben...@chromium.org> wrote:
google-c-style.el is extremely helpful for auto-correcting indentation issues. 

I'm wondering if someone's done similar work for VS (specifically VS2008). http://dev.chromium.org/developers/how-tos/visualstudio-tricks lists a few tricks, but even with these Visual Studio still auto-indents in a non-compliant style. I'm fairly new to VS so it's possible this just can't be done.




--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Marc-Antoine Ruel

unread,
Feb 23, 2010, 2:30:31 PM2/23/10
to mbelshe...@google.com, cben...@chromium.org, chromi...@chromium.org
I recommend you to use "block indent" instead of the default "smart indent". That's definitively a start.

M-A

2010/2/22 Mike Belshe <mbe...@google.com>
Reply all
Reply to author
Forward
0 new messages