Code formating question [solved!]
-
Hi I am a newbie so this should be easy.
I am trying to make my code formatted like
@
int MyFunc()
{
// code
int x;
x = 0;
if (true)
{
//code
}
}
@
I can't figure out which options to change to get this behavior?EDIT: also how do you make it stop adding the closing brace for things like () "" and {}
-
I think you should take a look at the "Qt Creator Code Style Settings":http://doc.qt.nokia.com/qtcreator-2.5/creator-code-style-settings.html ;)
-
I am going to guess that you mean Qt Creator and not Visual Studio, emacs, vim, Notepad++, Code::Blocks, Eclipse, or any of a multitude of other text editors you could be using to edit your code.
Qt Creator 2.5:
Tool menu, Text Editor group, Completion tab, "Automatically insert matching characters option"
Tools menu, C++ group, Code Style tab.. click Copy and Edit your own indenting definition.