|
|
|
|
|
by nyellin
5333 days ago
|
|
Many IDE features aren't necessary in Emacs and Vim, both of which have incredible generic text-manipulation capabilities. Want to add setters/getters to a Java class? Use YASnippet or SnipMate. Want to rename the local variable foo to bar? Use a scoped regex. Once you grok the power of generic text-manipulation, you can use it everywhere and in ways that IDE users can't imagine. (See http://steve-yegge.blogspot.com/2006/06/shiny-and-new-emacs-... ) Two caveats: 1. Scoped regexes, like C-M-h in Emacs, require a proper parser, which is what IDEs are all about. But I prefer starting with a text-oriented editor and tacking on AST-aware IDE features, than the opposite. 2. Emacs and Vim have poor support for renaming class methods across files. (Possible solutions are XRefactory for Emacs and Mozilla Pork for Vim.) |
|
Code hinting on a method call to an object....no problem. Your IDE knows what object the method returns, so it will give you a list of methods/variables that are applicable.
Realized your method is starting to get a bit long, just refactor a part of the code that seems like it is its own entity. Your IDE will handle all the variables needed and even tell you that other parts of your code can be refactored to call the same method.
Wrote something that broke something? No problem, right click that piece of code and choose revert.
Can't be arsed to write a makefile...neither can I...cause there is a button for that.
Hmmm...here is a weird problem...I wonder how my code is actually working right here? Oh yeah...use the built in debugger.
This method call throws some stupid exception...really? Are you sure? Ok then...alt+enter - surround with try catch.
Let's just make a quick constructor for that...ctrl-n, select variables, done (and yes, I would like to make a call to super :)