<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Visual Studio Code on entangledDEV</title>
        <link>/tags/visual-studio-code/</link>
        <description>Recent content in Visual Studio Code on entangledDEV</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>en-us</language>
        <lastBuildDate>Sun, 01 Feb 2026 00:09:25 -0600</lastBuildDate><atom:link href="/tags/visual-studio-code/index.xml" rel="self" type="application/rss+xml" /><item>
            <title>Comparing Files in Vscode</title>
            <link>/p/comparing-files-in-vscode/</link>
            <pubDate>Tue, 07 Nov 2023 16:58:58 -0600</pubDate>
            <guid>/p/comparing-files-in-vscode/</guid>
            <description>&lt;p&gt;Today, I&amp;rsquo;d like to share a simple trick for comparing the states of files using both the terminal and VSCode.&lt;/p&gt;&#xA;&lt;h2 id=&#34;comparing-files&#34;&gt;&lt;a href=&#34;#comparing-files&#34; class=&#34;header-anchor&#34;&gt;&lt;/a&gt;Comparing files&#xA;&lt;/h2&gt;&lt;p&gt;Typically, when we need to check for differences between two files, we can use &lt;code&gt;git diff&lt;/code&gt; if the files are within a Git repository or simply &lt;code&gt;diff&lt;/code&gt; if the files are local.&lt;/p&gt;&#xA;&lt;p&gt;However, these commands lack a user-friendly interface for comparing files, which is where VSCode&amp;rsquo;s file comparison feature comes in handy.&lt;/p&gt;&#xA;&lt;h2 id=&#34;steps-&#34;&gt;&lt;a href=&#34;#steps-&#34; class=&#34;header-anchor&#34;&gt;&lt;/a&gt;Steps 👍&#xA;&lt;/h2&gt;&lt;ol&gt;&#xA;&lt;li&gt;First, we need to obtain the file paths of the files we want to compare.&lt;/li&gt;&#xA;&lt;li&gt;Open your terminal and run the following command: &lt;code&gt;code --diff /path/fileA /path/fileB&lt;/code&gt;, then press Enter.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&#xA;    &lt;img src=&#34;/posts/comparing-files-vscode/terminal-diff.png&#34;&#xA;        loading=&#34;lazy&#34;&#xA;        &#xA;            alt=&#34;Terminal Comparing&#34;&#xA;        &#xA;    &gt;&lt;/p&gt;&#xA;&lt;p&gt;&#xA;    &lt;img src=&#34;/posts/comparing-files-vscode/vscode-diff-window.png&#34;&#xA;        loading=&#34;lazy&#34;&#xA;        &#xA;            alt=&#34;VSCode Comparing&#34;&#xA;        &#xA;    &gt;&lt;/p&gt;&#xA;&lt;p&gt;VSCode will open, displaying the differences between both files in a clear and user-friendly manner.&lt;/p&gt;&#xA;&lt;p&gt;Additionally, any changes you make to the files during this comparison can be conveniently saved back to the original files.&lt;/p&gt;&#xA;&lt;h2 id=&#34;conclusion&#34;&gt;&lt;a href=&#34;#conclusion&#34; class=&#34;header-anchor&#34;&gt;&lt;/a&gt;Conclusion&#xA;&lt;/h2&gt;&lt;p&gt;For swift and efficient file comparison, VSCode provides a valuable graphical user interface (GUI). This nifty trick can save time and help prevent mistakes, as you can instantly see how your changes impact the differences between the files.&lt;/p&gt;&#xA;</description>
        </item></channel>
</rss>
