Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 3.2.0-rc1
-
None
-
Windows 7, Linux
-
aab3b0f
Description
Steps to reproduce
1. File -> New file or project -> C++ -> C++ source file
2. Add some lines:
#define a 0x01 #define b 0x02 #define c 0x04 #define d 0x08
3. Change the defines to an enum:
3a)
enum bits {
#define a 0x01
#define b 0x02
#define c 0x04
#define d 0x08
};
3b)
Do a block selection around all #defines, press backspace to delete the '#define', press tab.
4. Result (d is not intended):
enum bits {
a 0x01
b 0x02
c 0x04
d 0x08
};
Expected:
enum bits {
a 0x01
b 0x02
c 0x04
d 0x08
};
Attachments
For Gerrit Dashboard: QTCREATORBUG-12697 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
120699,8 | TextEditor: Fixed indentation in block selection mode | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |