3 ms·
Vscode provides extracting methods and variables too, at least it does for python and c++. I didn't know it was a rare feature. What other platforms and langua
by mardifoufs 2y ago
Vscode provides extracting methods and variables too, at least it does for python and c++. I didn't know it was a rare feature.
What other platforms and languages have you used recently to compare with java?
- shepherdjerred 2y agoIntelliJ's refactoring functions are significantly more powerful than what VS Code has. Compare: https://www.jetbrains.com/help/idea/refactoring-source-code.html#refactoring_settings https://www.jetbrains.com/help/idea/refactoring-source-code.... (note the possible refactors in the sidebar) https://code.visualstudio.com/docs/editor/refactoring https://code.visualstudio.com/docs/editor/refactoring
- mardifoufs 2y agoSure, but my point was that refactoring is still possible with LSP. The main refactoring options exist already.
- shepherdjerred 2y agoIn my experience VS Code (with TypeScript) even the main refactoring options don't work very well. For example when I rename a method, move a file between directories, or move methods, the imports are not correctly updated and I have to spend time fixing errors before compiling. With IntelliJ + Java I can do more advanced refactors (change method signature for example) and it compiles without any manual effort.
- mardifoufs 2y agoAh don't get me wrong, I absolutely agree. For advanced refactoring and bigger project, IntelliJ is very much ahead. I just think that vscode is itself far ahead of emacs/vim in that regard. It's in a middle ground between IDE and an editor once you get a language plugin installed.