Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
Qt Creator 2.7.0-rc
-
None
-
ArchLinux, QtCreator package 2.7.0rc-1, running in KDE 4.10.1 and Qt 5.0.1. 64-bit.
Description
When refactoring to add an #include directive with FakeVIM enabled, the include line is added naively at the current position of the cursor instead of at the top of the file, which is quite unhelpful and makes my code invalid.
Example:
class MySubClass : public MySuperClass {
I right click on MySuperClass and select Refactor->Add #include "mysuperclass.h", then the code is modified as so:
class MySubClass : public MySup#include "mysuperclass.h"
erClass {
i.e. the code was inserted at the cursor position, which is the location I right clicked at.
Attachments
Issue Links
- is replaced by
-
QTCREATORBUG-8720 Getter setter functions added to the top of the cpp file
-
- Closed
-
For Gerrit Dashboard: QTCREATORBUG-8983 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
52042,1 | CppEditor: Insert first "#include" as the first line | 2.7 | qt-creator/qt-creator | Status: ABANDONED | 0 | 0 |