简体   繁体   English

如何在英国键盘上的TextMate for Mac中插入哈希符号?

[英]How to insert the hash symbol in TextMate for Mac on a British Keyboard?

When using TextMate on a Mac for HTML (and indeed any other language) I can't enter the hash ( # ) symbol using the keyboard. 在Mac上使用TextMate进行HTML(实际上是任何其他语言)时,我无法使用键盘输入哈希( # )符号。 British keyboards have a £ symbol on the 3 key which displaces the hash symbol. 英国键盘有3个关键它替代散列符号£象征。

In several other Mac application, you can press alt + 3 to get the hash symbol, but in TextMate, that doesn't work. 在其他几个Mac应用程序中,您可以按alt + 3来获取哈希符号,但在TextMate中,这不起作用。

Is there an alternative that more experienced Mac programmers than me know of? 有没有比我更熟悉的Mac程序员的替代方案?

For programming it's generally a good idea to switch to a US keyboard layout - this only really affects the use of Shift + 3 vs Option + 3 (£ and # get toggled - you can still get £ via Option + 3 ). 对于编程来说,切换到美式键盘布局通常是一个好主意 - 这只会影响Shift + 3Option + 3的使用 (£和#get toggled - 你仍然可以通过Option + 3获得£)。

System Preferences -> Language & Text -> Input Sources -> US (and check "Show Input menu in menu bar" for convenient toggling between US and UK keyboard layouts). 系统首选项 - >语言和文本 - >输入源 - >美国(并选中“在菜单栏中显示输入菜单”,以方便在美国和英国键盘布局之间切换)。

Doesn't Alt-3 work for you? Alt-3不适合你吗?

I just checked it on my MBP and it works fine. 我刚刚在我的MBP上检查过,它运行正常。 (I had to first enable/activate another keyboard by: system preference > Language & Text > Input Sources > (the check the boxes next the languages you want to enable. Close Sys Pref, then click on flag in upper right hand corner of your menubar. Then click on either "Show Keyboard Viewer" or "Show Character Viewer"--either will show you this key binding. (我必须先通过以下方式启用/激活另一个键盘:系统首选项>语言和文本>输入源>(选中要启用的语言旁边的框。关闭Sys Pref,然后单击您右上角的标志菜单栏然后单击“显示键盘查看器”或“显示字符查看器” - 将显示此键绑定。

My bust--Paul's answer wasn't in when i first looked at this Q; 我的胸围 - 当我第一次看到这个Q时,保罗的回答并不存在; only noticed it after i fired off my (obviously redundant) answer. 在我解雇了我的(显然多余的)答案之后才注意到它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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