Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there option to distinguish between saved and unsaved code in the Visual studio code?

I have a question that the Visual Studio Code has the option to distinguish between saved code and un-saved code. Sometimes, I can't find the modified code in the editor window. So, I use "ctrl + z" to trace my modification. Do you have your idea to trace your modification but not saved yet in the Visual Studio code?

like image 569
fbyself2011 Avatar asked Dec 14 '25 21:12

fbyself2011


1 Answers

You always get a blue line (called gutter indicators ) on the left of unsaved code in the open editor, NOTE:- if you are don't you can set them on as below

Goto
file > prefrences > settings  
search for "Scm Diff Decorations"

enter image description here

but if it's not that helpful .

Having an auto save option turned on will be a great help.

File > Auto Save

or 
Goto 
file > prefrences > settings   
search for autosave
Turn it ON

Now after you saved you can have extensions like GIT or source Control to show the changes made .

press ctrl + shift + G to open it 

if not installed you can download it from

EXTENSIONS : MARKETPLACE

ctrl + Shift + X

search for source control or  Git 
click on install
like image 103
User Avatar answered Dec 16 '25 22:12

User



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!