Is there a way to enforce using tabs instead of spaces?

前端 未结 7 1697

StyleCop offers to check for consistent use of spaces, but sadly lacks the opposite idea: Force source code to use tabs. Is there some way to add this functionality? It does

7条回答
  •  攒了一身酷
    2021-01-01 18:25

    Ok I managed to figure out the problem because the reason why this warning appear, It appear because the developer sometimes copy and paste the code

    if you are using VS2010 Go to solution explorer Check in Setting Style Cop then modify the setting inside the style Cop e.g disable or uncheck the setting[Spacing.....]

提交回复
热议问题