比如说我写了很多次private而不是private。
有没有办法让 Eclipse 自动修复我的常见拼写错误?
像构建一个我的常见错字的地图来修复它,然后让 Eclipse 修复它而不问我这个问题。
是否有任何其他具有此类支持的 IDE\编辑器?
比如说我写了很多次private而不是private。
有没有办法让 Eclipse 自动修复我的常见拼写错误?
像构建一个我的常见错字的地图来修复它,然后让 Eclipse 修复它而不问我这个问题。
是否有任何其他具有此类支持的 IDE\编辑器?
There is no builtin support for automatically changing strings. The closest to your request are the templates of the Java editor, but even those must explicitly be activated using CtrlSpace.
To get around your problem, I suggest simply not to write that much yourself. If you want to declare a private field, type just "pr" and hit CtrlSpace to invoke code completion. Eclipse can do code completion quite well, often even without any trigger characters (try it with an empty class file).