Is there a way to only move one line of a multiline change to another changelist?
已回答
If I am in the VCS->Commit window, and looking at a change in the diff window that comprises multiple lines, is there a way to only move one line of that change to another changelist?
I tried selecting "Highlight split changes" which breaks the change into smaller changes, but attempting to move one of the smaller split changes to another changelist moves the entire original change.
I filed that behavior below:
"Highlight split changes in Commit Diff window does not allow split changes to be moved to another changelist"
https://youtrack.jetbrains.com/issue/IDEA-200516
However, maybe there is a better way I'm just missing? I tried searching the keymap for a command to just move one line but wasn't successful.
请先登录再写评论。
There is no way of moving a single line to another changelist. Please follow the updates in YouTrack
This would have made my day. :-/
Samuel Janela
You can now move a single line that was modified in a file to a different changelist:
Ivan Pajic Is there a way to split a continuous chunk into different changelists?
forresthopkinsa Could you please elaborate a bit more? What would you like to achieve? Thanks!
Ivan Pajic Right now, a continuous range of changed lines appears to be an indivisible hunk that cannot be split between changelists. Separate hunks, like in the gif you posted above, can be assigned accordingly; but I don't see any way to split a single hunk up.
forresthopkinsa Thanks for the clarification. Currently, it is not possible unfortunately. We have a feature request for it on our issue tracker: https://youtrack.jetbrains.com/issue/IJPL-72669. Feel free to vote for it and follow for progress updates.
On the other hand you can split a diff chunk to commit individual lines: