V4.0.0 CrossStudio Tab Width 4 doesn't work



  • Avatar
    Jon Elliott

    Hi Kevin,

    It is working for me - the settings are in the Languages environment options group, so to configure tabs on C/C++ files you need to click Tools > Options... and set Languages > C and C++ > Tab Size to 4 and Languages > C and C++ > Use Tabs to Yes to make the editor insert tabs rather than spaces when indenting.

    It is possible you are using Text Editor > Formatting > Tab Width - this sets the tab width for the clang code formatter.



    Comment actions Permalink
  • Avatar
    Dr Danish Ali

    If you're using gcc you might also add the additional C/C++ Compiler Option


    So gcc can know how far tab indentation is so it can correctly warn about indentation not matching the syntax, enabled by -Wall and -Wextra.

    I don't know if there's an equivalent for clang.

    Comment actions Permalink

Please sign in to leave a comment.