5 ms·
I really love console, but I don't think that command is so awesome (don't tried it so I'm asking just for curiosity): What if you only want to refactor Class1.
by gjulianm 14y ago
I really love console, but I don't think that command is so awesome (don't tried it so I'm asking just for curiosity): What if you only want to refactor Class1.Foo() method while not changing Class2.Foo()? That is, could you refactor taking context into account with the CL?
I use Visual Studio to develop for WP7, and refactoring is even more awesome: change any name, click the little popup (non-intrusive at all) and select refactor. Done. Not only in that file, but also in your project and any other project you have opened.
I'm not trying to bash command line tools (I'd really love to know them better), but I think that there are things that are far easier with a graphical IDE.
- ashleyblackmore 14y ago"I'm not trying to bash command line tools" hehe "if you only want to refactor Class1.Foo() method while not changing Class2.Foo()" vim has functionality for scope in most languages (see http://vimdoc.sourceforge.net/htmldoc/eval.html#internal-variables http://vimdoc.sourceforge.net/htmldoc/eval.html#internal-var...). If vim doesn't have the functionality, it is a one-liner in your config file. Additionally, there are language-specific vim refactoring options such as eclim (eclipse functionality in vim and vice-versa) for java, and rope/bicycle repair man for python edit: on a side note, these religious discussions are great for unearthing great links and cli tricks!
- shanemhansen 14y agoI'm not very opinionated actually. IDE's for static languages do a great job at refactoring, especially for things like java where the language was designed more for tooling. When sed fails, and I don't have pycharm open, I stick with something like: grep -lR 'thing_i_need_to_change(' | xargs emacs To get a listing of files and pull them all up in buffers.