开发者

Copy and pasting text between files causes leading whitespace to be trimmed in Xcode

In Xcode 4, I'm having a problem with leading white space (it's being trimmed), when copy and pasting between files. In the hex dump, I see 0x20s in the source, but not in the copy; this means the text is being changed on paste.

I开发者_Python百科n preferences > text editing > indentation, I have prefer indent using: spaces and tab key: indents in leading white space set.

This doesn't happen on trailing whitespace. How can I fix this problem?


You can try to use Edit > Paste and Preserve Formatting in Xcode. I can see it in version 5.1 but can't tell if it was there before. There is a keyboard combination for it, too: Alt+Caps+Command+C.


In that same Preferences > Text Editing > Indentation screen, try unchecking the Syntax-aware indenting option.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜