How to insert tabs before function name

已回答

Hi,

By default Clion insert space before function name and i need to make tabs (it's a guideline of my school).

Example :

int<tab><tab>function_name(...) will be replace by int            function_name(...)

I need to save the tab and not replace them with space.

 

Thanks in advance !    

0

Hi!

Please enable `Preferences | Editor | Code Style | C/C++ | Tabs and Indents | Use tab character` option. According to our documentation:

  • If this checkbox is selected, tab characters are used:
    • On pressing the  key
    • For indentation
    • For code reformatting
  • When the checkbox is cleared, CLion uses spaces instead of tabs.
0

 

Hello Anna, 

Well I think there is a bug because despite the fact that I enabled this option, tabs are always replaced by spaces :

Edition: i have update clion and i think it work.

0

请先登录再写评论。