Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
661 views
in Technique[技术] by (71.8m points)

macos - MacOSX: how to disable accented characters input

I'm using Eclipse Juno on MacOSX Lion and have an issue with typing.

I often print one quote/apostrophe and move the caret. But in this Mac version of Eclipse the quote as I type is highlighted by orange marker (it seems like Mac smart quotes feature) and when I move caret - quote disappears. (in Xcode and Appcode everything works ok).

I tried

defaults write NSGlobalDomain AutomaticQuoteSubstitutionEnabled -bool false

to disable smart qotes globally, restarted the computer, but this doesn't help.

Also I tried to find in Eclipse preferences something related to "quote", "smart", "correction" but had no luck.

Tried to disable 'Smart insert mode' - useless.

Tried to set Java -> Typing -> Automatically close -> Strings to on - but now, when I move caret after printing a quote, Eclipse doubles it instead of removing like before. Also annoying. Why on earth in other programs quotes handling works as expected but I can't get it work the same way in Eclipse?

By the way, when I recently pressed quote and then a I got '?' symbol. So I assume this is something related to autocorrection.
But even if I disable Language & Text -> Automatic replacement, Eclipse replaces " + a to ?.

How to disable this behavior?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Yes! It's a shame that I didn't know about such a simple thing - but this is because I'm not a mac-maniac, I live on several OSes at once. When I've found out that quote + symbol gives me an accented character I've realized what's happening.

This was very easy:

  • Launch System Preferences, open the Language & Text pane.
  • Click the Input Sources tab.
  • In the list of input methods on the left, scroll down and enable U.S., disable U.S. International.

This 'U.S. International' did all the evil. Some IDE use their own input system, while Eclipse uses common input. This feature is one of those 'little convenient things' (just like smart quotes) which turn my life on mac into nightmare sometimes.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...