Change-Indicators in Editor without external Version Control
On a previous project, I used the Visual SourceSafe integration in IDEA and really appreciated the change markers in the left and right gutter, along with the popups that actually tell me what has changed on those lines.
On my current project, we're unfortunately using a non-supported Version Control System and I've lost this very useful feature. How come, even with local history turned on, these change-indicators cannot be shown?
请先登录再写评论。
What would they show changes relative to? Obviously if it was all changes,
the entire file would be marked with "line added" markers.
Keith Lea wrote:
>> How come, even with local history turned on, these
>> change-indicators cannot be shown?
Some user-selected point in the local version history? Since you can
already add local version history labels for the whole project, it
wouldn't seem too difficult to add a way for users to select the label
against which differences would be computed.
Either the last-set label, a user-defined label, or maybe even the last time you did a "mark project as current" (I think that's what it was called in the VSS integration)
Basically the idea is that when I check-out a file in my external (non-integrated) VCS, I should be able to perform some action in IDEA to tell it that this is the baseline version against which to track differences. Considering the diff-tracking logic is already built into IDEA, this shouldn't be too hard to implement.
Ideally I'd love to have the option of having IDEA do this automatically whenever it notices a file has switched from Read-Only to Writeable, as this tends to indicate a check-out in most VCS's. Similarly, when the file is marked Read-Only again, this indicates a check-in, so the diffs should be cleared.