Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / July 2008

Tip: Looking for answers? Try searching our database.

C++: auto indent changed from 2005 to 2008

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Hendrik Schober - 18 Jul 2008 13:20 GMT
Hi,

in previous versions of VS it auto-indented my C++ code
like this:
  if(cond)
  {
       f();
  }
VS2008 does it like this:
  if(cond)
      {
      f();
      }
I just don't like the latter. (Not to speak of several
100kLoC that are formatted in the old style.)
Did I mess up some setting? Is there some way to get the
old behavior back? Or will I have to live with block
indenting plus manual adjusting?

TIA,

Schobi
PvdG42 - 18 Jul 2008 18:02 GMT
> Hi,
>
[quoted text clipped - 18 lines]
>
> Schobi

Look in Tools->Options...
Look under Text Editor->C/C++->Formatting
Is "Indent Braces" checked by any chance?
Hendrik Schober - 18 Jul 2008 21:35 GMT
>[...])
>> Did I mess up some setting? Is there some way to get the
[quoted text clipped - 4 lines]
> Look under Text Editor->C/C++->Formatting
> Is "Indent Braces" checked by any chance?

 Thanks a lot. I had expected this on the "Tabs" page...
 I have no idea how I managed to mess this up.

 Schobi

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.