Smart KB is an essential helper for non-English speaking developer.
It can automatically switch the input source to English for your Xcode, Terminal, Eclipse and so on.
You can also set the preferred input source for each app.
Then you dont have to worry about the input source for coding anymore.