Home > Software engineering >  How can I highlight local Committed code in Intellij IDEA?
How can I highlight local Committed code in Intellij IDEA?

Time:01-19

What I want is to set Intellij that way so that the code I commit locally to git(before I submitted it) would be highlighted, so that I can track my own progress.

The best option would be to highlight the file name and the row where the changes occurred.

The file name highlighting would do too.

CodePudding user response:

Use the following commands:

  1. "Git | Commit" The window with the list of changed files will appear. Double-click the file name to preview the changes. If the window was accidentally closed, reopen it by "View | Tool windows | Commit"
  2. Finish the preview and click "Commit" to save changes locally.
  3. When you are ready to push to remote, use the "Git | Push" menu item. You can unite steps 2 and 3 by clicking the "Commit and push" button.

CodePudding user response:

You can follow either what @nadia suggests, or you can install git gui too. When you want to see the progress or changed file names, just run git gui on same directory. the new pop-up window will be opened with old and new contents

  •  Tags:  
  • Related