Show context actions doesn't have rollback option anymore
A feature that I use a lot on Webstorm is the context actions menu (option+return) and then using the ‘rollback' action
This new UI doesn't seem to have it anymore, any chance we have it back?
请先登录再写评论。
Do you refer to Git Subversion “Rollback” action, or to some different action? Please send a screenshot where you have it.
If you meant “Back” action, please add the button back to the toolbar by right-clicking on it:
https://youtu.be/BHhmulg83K4
Yeah, i was talking about the git rollback action. If something changes in that specific line and you open the context actions menu, a rollback option was available, but not anymore.
That feature was way more convenient than pressing ‘command+option+z’, which seems to be the only way now
Go to “Settings | Menus and toolbars | Editor Popup menu | + (add action)”, then type “Rollback” and add.
The reason why it was removed from the default view is that in NewUI, it was decided to keep the minimum commands in the menus to reduce screen clutter, and focus on customization, so that the user can add his preferred commands.
Thanks for answering Nadia, but this adds the rollback option in this menu, not in the context actions one
As you refer to the Editor Inlay Hints, I asked my colleague for clarification. I will get back with an answer later.
Thanks!
This context actions menu is opened by using option+return on mac
The VCS Rollback Lines intention was removed in 2023.2 because we see this was a rarely used intention and in most cases, it was called by mistake: https://youtrack.jetbrains.com/issue/IDEA-319626/Remove-VCS-Rollback-Lines-intention
You can use the IDE main menu `Help | Find Action` (or shortcut ⌘Сmd+⇧Shift+A directly), type Rollback Lines to use it.
Or assign a shortcut for it in `Settings | Keymap`.
Thanks for the answer.
Any plans on the future to make context actions customisable?
That action was completely removed from our code, you won't be able to use it even if the context actions are customizable.
Actually, you could already custom the content actions (enable/disable it) in Settings | Editor | Intentions.
About this intention, to be honest, I don't think we have a plan to bring it back currently due to the reason below:
If you still need it, I think you could leave a comment at https://youtrack.jetbrains.com/issue/IDEA-319626 about it. If there are more people want it, we may consider adding it back.