Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code highlight modified lines

I am unable to find a setting to enable modified/changed/new lines highlight in editor. Like on this screenshot from the video about angular2 by google.

How to enable modified line hilight?

Vs code modified/changed/new lines highlight

like image 916
Andrew B Avatar asked Dec 19 '16 09:12

Andrew B


3 Answers

This is connected with your file being under revision control. If you have your files in git and open the folder in VS Code. You will see the colors depending on the change you've made.

enter image description here

Check section about Gutter indicators.

like image 171
Paweł Łukasik Avatar answered Oct 04 '22 18:10

Paweł Łukasik


I had the same problem try launching vscode in terminal like: code your-project-dictionary. If code command cannot be found, enable code in shell: Open VSCode press CMD+Shift+P. A dialog will be shown: Type in "shell" and click on Shell Command: Install 'code' command in PATH. Now you can launch VSCode in terminal. This solved my issue with highlighting changed files on VSC Project Structure!

like image 31
M_droid Avatar answered Oct 04 '22 19:10

M_droid


I had the same issue and turns out that for me it was a bug in git client. Reinstalling git resolved the problem with changes highlighting. Ensure that you are using latest git client. Then reopen VSCode, reopen project/folder.

like image 26
valdem Avatar answered Oct 04 '22 18:10

valdem