How to change back current selected line?

I am wondering how to change back changes only in the current selected line of code without changing back rest of the changes across the file/project?

0
4 comments

Not currently possible, please vote for https://youtrack.jetbrains.com/issue/IDEA-161441.

When using version control, you can revert changes in selected block - see https://youtrack.jetbrains.com/issue/IDEA-161441#comment=27-1620205

1
Avatar
Permanently deleted user

It is not possible ? Ehhh :(. Sure, I'll vote.

 

I know with version control, or local history changes, it is possible, but possibility to roll back only current line would be faster and more comfortable.

 

Thanks for the information. :)

0
Avatar
Permanently deleted user

Too late for the original poster, I'm sure, but this is now possible. When editing a file, the lines you have changed will have a colored bar beside their line numbers. Left click on this colored bar and select 'rollback lines'.

0
Avatar
Permanently deleted user

But you still can't change only one line from edited block.

1

Please sign in to leave a comment.