VCS and editor plugin
Answered
Hi,
I am trying to show VCS changes as green for addition and red for deletion or another colour for changes to blocks or lines of code for a file in the editor.
I already know the standard classes I need like Editor.java and ChangeList.java used in identifying file changes but what can I use in the editor to identify the line or block that got changed and display the colours I mentioned.
Thanks
Kenneth
Please sign in to leave a comment.
Could you show a mockup of what you're trying to achieve?
Sorry about the delay in the response.
https://www.jetbrains.com/idea/whatsnew/img/2016.1/idea-vcs-merge.png
something like the above image with the color coding but in the editor window instead of a seperate window to show what changed in a commit for a file so a developer can navigate and identify changes quickly from file to file via ctrl click.
Thanks
Do you want to add highlighting to the existing editor for a local file or to embed diff window into the editor window (as a separate tab)?
The difference is "I want to see <things that were changed in a past 2 weeks> while editing code" vs "I don't want to switch windows to check what was changed in <a commit #abcefg>".
The former. Its not a diff window but the aim is to add highlighting to all changes of a commit in a file.
You can highlight lines in Editor using RangeHighlighters:
Or using
If you need to calculate differences between two revisions of a file, you can use
Thanks Aleksey, I will try this.