Electronics > Microcontrollers

Automatic indent and cleanup for C / C++ source code?

(1/2) > >>

Hi, I was wondering if anyone knew of a program for Windows that can fix indentations and cleanup C / C++ source code?  ???

I've seen http://www.codeblocks.org/ do it. But i need windows side :O any ideas ?
I', using micro C and MPLAB but i cant see any options like that in it. :)

(I'm currently doing a work around by using codeblocks (windows version) and going back and forth when things need fixing, but it's kind of a pain  :P )

I just made a test using Visual Studio Express (which is free, but is a huge package to install, IIRC), and it is able to auto intent the selected text (Edit->Advanced->Format selection). However, I never used that feature, so I don't know how good it works.

If you're already using Matlab for something else, its editor has a "Text->smart indent" command, too. I use this feature for M-files, it works perfectly, and seems to work for C-files, too.

Other free editors I use/used (dev-cpp, Notepad++) don't have automatic recognition and indentation features, AFAIK.

Code::Blocks Works fine under Windows.



It also runs under windows http://gnuwin32.sourceforge.net/packages/indent.htm

I use GVim a lot, can use it in Windows and Linux, and to auto-indent all my code I do this:
ESC to go to command mode and then
gg=G and it auto-indents all the file, its also a nice and very very powerfull editor, with more capabilities than a lot of clicodrome IDE's


[0] Message Index

[#] Next page

There was an error while thanking
Go to full version