简体   繁体   中英

Xcode indenting an html/javascript file

So I am editing a HTML file with a bunch of javascript in it that I am using in my iOS project. Xcode is doing a terrible job of letting me indent things. Is there any way to mess with the indentation settings at all? Things are just getting really hard to read.

在此输入图像描述

There's a preference in Xcode for this.

缩进首选项

This will likely not help the text currently in the files you're editing (since the indentations / spaces are already there and to change them, you need to do some manual editing), but modifying these preferences will help you going forward.

Also, here's a related question with answers that may help you further .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM