简体   繁体   中英

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

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.

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