Visual Studio replace tab with 4 spaces?

后端 未结 5 1062
别跟我提以往
别跟我提以往 2020-12-22 17:15

Is there a way to set TAB button to work as 4 spaces in Visual Studio 2010 instead of going to Edit->Advanced->Untabify Selected Lines?

5条回答
  •  心在旅途
    2020-12-22 17:51

    None of these answer were working for me on my macbook pro. So what i had to do was go to:

    Preferences -> Source Code -> Code Formatting -> C# source code.

    From here I could change my style and spacing tabs etc. This is the only project i have where the lead developer has different formatting than i do. It was a pain in the butt that my IDE would format my code different than theirs.

提交回复
热议问题