I have been using the GVIM C++ editor and the usual g++ compiler in the Ubuntu Linux environment, but since Code::Blocks was highly recommended by the experts in this forum, I have also installed "Code::Blocks. I have the following two questions about Code::Blocks.
1) After I have edited a .cpp file with GVIM, and after I have closed the GVIM editor, if I restart re-editing the same .cpp file with the Code::Blocks editor, this time some of the indentation is lost. For example, when I use Code:: Blocks to open a cpp file that has already been edited with GVIM, this time the indentation levels of braces, and the indentation of various lines is actually lost, and the code looks difficult to read. Is there anything I can do in order to make sure that the C++ editor of Code::Blocks recognizes the indentation done with the GVIM?
2) Since I am beginning to learn Qt in order to create menus for C++ Linux programs, I have installed the "QT Creator (Qt 4)" from the Ubuntu Software Center (by using the automatic menu that directly installs the items available from Ubuntu), and this is excellent. However, having noticed that Code::Blocks also has the capability to generate Qt projects, I wanted to start using Code::Blocks for Qt projects as well. But when I tried to create a Qt project from Code::Blocks, the project manager asked me to enter the location of the Qt: "Please select the location of Trolltech QT4 on your computer. This is the top-level folder where QT4 was installed. This folder must contain the folders "include" and "lib" ".
But since I have originally installed Qt Creator directly from the Ubuntu Software Center menu, it seems to me that the "include" and "lib" directories do not have a unified top-level QT directory, and so I am unable to give Code::Blocks project manager the information it needs.
Of course, as a last resort I can certainly download the tar file to install Qt Creator manually, and in this case I assume that there will be a unified top-level QT4 folder containing both the "include" and "lib" folders, as the Code::Blocks project manager needed. But would such a manual re-installation of Qt Creator disturb the previous settings? What would you recommend doing to enable Code::Blocks to create Qt projects?