Is it possible to set indent settings in Xcode per project (or per file, even)?

前端 未结 6 1287
北恋
北恋 2020-12-14 05:22

Some projects I work in uses tab key settings that equate to 3 or 4 spaces and another wants actual tabs. Another mixes the two depending on directory.

Is there s

6条回答
  •  一整个雨季
    2020-12-14 06:13

    You can set indentation per file, group, project, or for all new projects, and for all but per file indentation, new source code files will inherit the indentation settings of the closest parent.

    To set indentation per file, select the file in the Project Navigator, and set indentation in the File Inspector ▶ Text Settings.

    To set indentation per group, select the group in the Project Navigator, and set indentation in the File Inspector ▶ Text Settings.

    To set indentation per project, select the project in the Project Navigator, and set indentation in the File Inspector ▶ Text Settings.

    To set default indentation for new projects, select Xcode ▶ Preferences... ▶ Text Editing ▶ Indentation:

提交回复
热议问题