Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It would be the same as in IntelliJ. As long as you have the Java LSP active, you issue the `lsp-rename` action: https://emacs-lsp.github.io/lsp-java/#lsp-mode-commands

This works exactly the same for all languages whose LSP support this action, which is most of them.



No! Rename in JSP is not intelligent enough to match an interface name with its implementation names and decide whether to also rename those!


What do you mean by "implementation names"? I assumed you meant changing the "implements X", which should be easy for an LSP.


Java implementations sometimes take part of the name from the interface they implement, for example, `FooRunner` probably implements `Runner`. My example was that I renamed `Runner` to whatever, `Executor`, and IntelliJ will ask me if I want to rename also implementations (in this case, it would show `FooRunner` -> `FooExecutor`).




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: