自定义 Xcode [字体、代码意义等] [英] Customizing Xcode [fonts, code sense, and more]

查看:43
本文介绍了自定义 Xcode [字体、代码意义等]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  1. 如何使代码完成区分大小写?
  2. 如何让 Ctrl-k 删除行的内容 换行符?
  3. 如何让退格键始终只删除一个字符,不管它是什么?现在,它会以等于我的缩进级别的块删除空格.
  4. 如何更改文件模板中的缩进样式?我喜欢将左大括号放在自己的行上.
  5. 如何使字体具有别名?

我使用的是 Xcode 3.2.2.

I'm using Xcode 3.2.2.

问题 2、4 和 5 已解决.1 和 3 仍然开放.

Issues 2, 4, and 5 are solved. 1 and 3 are still open.

ad.3.是的,我将 Xcode 设置为使用空格,而不是制表符.

ad.3. Yes, I set Xcode to use spaces, not tabs.

推荐答案

如何使代码完成区分大小写?

How can I make code completion case-sensitive?

我认为这不可能.

如何让 Ctrl-k 杀死该行的内容和换行符?

How can I make Ctrl-k kill the content of the line and the new line character?

我无法回答这个问题,您可能需要编写一个脚本来执行此操作.

I can't answer that one, you might need to write a script to do it.

如何让退格键始终只删除一个字符,不管它是什么?现在,它以与我的缩进级别相等的块删除空格.

How can I make backspace always delete only one character, no matter what it is? Right now, it deletes spaces in chunks equal to my indent level.

退格总是删除一个字符.听起来您的文件中包含制表符,每个制表符默认占用 4 个空格.您可以通过在缩进首选项面板中取消选择Tab键插入选项卡,而不是空格来告诉Xcode使用空格.

Backspace always deletes one character. It sounds like your file has tab characters in it, each one of which takes up the space of 4 spaces by default. You can tell Xcode to use spaces instead by de-selecting Tab key inserts tab, not spaces in the Indentation preference panel.

如何更改文件模板中的缩进样式?我喜欢将左大括号放在自己的行上.

How to change the indentation style in file templates? I like to have the opening brace on its own line.

您需要创建自定义文件模板.您可以在此处找到 Xcode 模板:

You need to create custom file templates. You can find the Xcode templates here:

/Developer/Library/Xcode/Templates/File Templates 

您需要将相应的模板复制到此位置:

You need to copy the appropriate templates to this location:

~/Library/Application Support/Developer/Shared/Xcode/File Templates

然后您可以编辑模板文件以使用您喜欢的任何缩进.

You can then edit the template files to use whatever indents you like.

如何使字体具有别名?

您需要使用具有别名字符的字体.在 9 点或 10 点尝试摩纳哥.

You need to use a font that has aliased characters. Try Monaco at 9 or 10 points.

这篇关于自定义 Xcode [字体、代码意义等]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆