VSCode Productivity Hack #1

Coveted Comparisons

Let me paint you a picture; you’re working on a project that has several identical configuration files. The difference between these files is that each is used in different environments i.e. one file for the development…


This content originally appeared on DEV Community and was authored by Siddeshwar Navaaneetharan

Coveted Comparisons

Intro Image

Let me paint you a picture; you're working on a project that has several identical configuration files. The difference between these files is that each is used in different environments i.e. one file for the development environment, one file for the staging environment and another for the production environment.

Now wouldn't it be easier if you could open the side by side and make a comparison to see what's missing present in one and missing in the other ? Well, look no further, for VSCode has the all-powerful Select to compare and Compare Selected feature.

Steps

  1. Right click the first file you want to compare against and click Select For Compare Select for compare image
  2. Right the second file, which you want to compare with the first and click Compare with Selected
    Compare with selected image

  3. Voila ! There you have it, two files one beside the other with the diffs.
    Result image
    That's all for today folks !


This content originally appeared on DEV Community and was authored by Siddeshwar Navaaneetharan


Print Share Comment Cite Upload Translate Updates
APA

Siddeshwar Navaaneetharan | Sciencx (2021-11-22T18:21:01+00:00) VSCode Productivity Hack #1. Retrieved from https://www.scien.cx/2021/11/22/vscode-productivity-hack-1/

MLA
" » VSCode Productivity Hack #1." Siddeshwar Navaaneetharan | Sciencx - Monday November 22, 2021, https://www.scien.cx/2021/11/22/vscode-productivity-hack-1/
HARVARD
Siddeshwar Navaaneetharan | Sciencx Monday November 22, 2021 » VSCode Productivity Hack #1., viewed ,<https://www.scien.cx/2021/11/22/vscode-productivity-hack-1/>
VANCOUVER
Siddeshwar Navaaneetharan | Sciencx - » VSCode Productivity Hack #1. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/11/22/vscode-productivity-hack-1/
CHICAGO
" » VSCode Productivity Hack #1." Siddeshwar Navaaneetharan | Sciencx - Accessed . https://www.scien.cx/2021/11/22/vscode-productivity-hack-1/
IEEE
" » VSCode Productivity Hack #1." Siddeshwar Navaaneetharan | Sciencx [Online]. Available: https://www.scien.cx/2021/11/22/vscode-productivity-hack-1/. [Accessed: ]
rf:citation
» VSCode Productivity Hack #1 | Siddeshwar Navaaneetharan | Sciencx | https://www.scien.cx/2021/11/22/vscode-productivity-hack-1/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.