using indentation with tab

已回答

Hi,

Help!!!!

I'm using CLion 2019.1.3 with c++.

"use tab character" is checked over the Default IDE scheme.

 

I want to be able to use "Tab" button whenever i want in the code and have an indentation of 4 spaces.

example:

pSomeClass->SomeFunc(arg1, arg2, arg3);

Regarding this sort of code, "Tab" button gives me indentation only when the cursor is at the beginning of the line.

Any other place over the line and the cursor moves to the next argument.

I looked at the settings - keymap, code style etc. and checked that there is no "Tab" as a shortcut except "Tab" itself (in Editor Actions)

 

Thanks in advance,

Tom

0

Hi! You can go to the File | Settings | Keymap, search for the "Next Parameter" (or "Prev Parameter") and unbind the "Tab" key for it. Also, if you don't like it as a default behaviour, please upvote the corresponding task, we'll consider disabling it by default.

1
Avatar
Permanently deleted user

Works! Thank you!

0

请先登录再写评论。