When I type this line of code:
QString newPath = QFileDialog::GetOpenFileName(this, tr("Open Image"), path, tr("Image files (%1)").arg(formats.join(" ")));
I typically format it like this:
QString newPath = QFileDialog::GetOpenFileName(this,
tr("Open Image"),
path,
tr("Image files (%1)").arg(formats.join(" ")));
i.e. I like to align the function parameters vertically, having each parameter on its own line.
Is there some Visual Studio add-on that could automatically do this?
Would be nice if I could just press some key combo to automatically format code (similar to Netbeans Alt+Shift+F, I believe)
UPDATE: This code formatter works great for standard C++ application, but doesn't work right in my Qt application. Oh wellz, cant have everything, right?