correct tabbing

Started by
1 comment, last by BloodLust666 18 years, 6 months ago
is there a way to have my c++.net compiler automatically tab every line correctly. because i just recently added a namespace and put EVERYTHING thing that includes my engine into it. it looks like this now
[source lang=C++]
namespace engine
{
class blah
{
private:
   ...
public:
   ...
};

// and so on

i want everything to be tabbed correctly so it doesn't look all jumbled, i WOULD do it myself, but i have about 11 files like that with about 300 some lines of code...
-------------------------Unless specified otherwise, my questions pertain:Windows Platform (with the mindset to keep things multi-platform as possible)C++Visual Studio 2008OpenGL with SFML
Advertisement
To tab code once just highlight the code to be indented and hit tab. Alternately you can select all the text if a file and Ctrl-K Ctrl-F to auto format everything.
awesome, thanks, that just saved SOO much time
-------------------------Unless specified otherwise, my questions pertain:Windows Platform (with the mindset to keep things multi-platform as possible)C++Visual Studio 2008OpenGL with SFML

This topic is closed to new replies.

Advertisement