Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-8983

C++ Refactor Action "Include header" with FakeVIM enabled adds include at current cursor position

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 2.7.0-rc
    • C/C++/Obj-C++ Support
    • 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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              erikv Erik Verbruggen
              nhourt Nathan Hourt
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes