开发者

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

开发者 https://www.devze.com 2022-12-20 03:03 出处:网络
When using TextMate on a Mac fo开发者_如何转开发r HTML (and indeed any other language) I can\'t enter the hash (#) symbol using the keyboard.British keyboards have a £ symbol on the 3 key which displ

When using TextMate on a Mac fo开发者_如何转开发r HTML (and indeed any other language) I can't enter the hash (#) symbol using the keyboard. British keyboards have a £ symbol on the 3 key which displaces the hash symbol.

In several other Mac application, you can press alt+3 to get the hash symbol, but in TextMate, that doesn't work.

Is there an alternative that more experienced Mac programmers than me know of?


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).

System Preferences -> Language & Text -> Input Sources -> U.S. (and check "Show Input menu in menu bar" for convenient toggling between US and UK keyboard layouts).


Doesn't Alt-3 work for you?

I just checked it on my MBP and it works fine. (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.

My bust--Paul's answer wasn't in when i first looked at this Q; only noticed it after i fired off my (obviously redundant) answer.

0

精彩评论

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

关注公众号