<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Venkata Rohith Pesala</title>
    <description>The latest articles on DEV Community by Venkata Rohith Pesala (@venkatarohithpesala).</description>
    <link>https://dev.to/venkatarohithpesala</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4222883%2F9793da92-45fc-49c4-893b-25786a1a3f32.jpg</url>
      <title>DEV Community: Venkata Rohith Pesala</title>
      <link>https://dev.to/venkatarohithpesala</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/venkatarohithpesala"/>
    <language>en</language>
    <item>
      <title>How to see your .env values in VS Code without opening the file</title>
      <dc:creator>Venkata Rohith Pesala</dc:creator>
      <pubDate>Mon, 02 Nov 2026 18:13:10 +0000</pubDate>
      <link>https://dev.to/venkatarohithpesala/how-to-see-your-env-values-in-vs-code-without-opening-the-file-3a71</link>
      <guid>https://dev.to/venkatarohithpesala/how-to-see-your-env-values-in-vs-code-without-opening-the-file-3a71</guid>
      <description>&lt;p&gt;You are reading some code and you see &lt;code&gt;process.env.PORT&lt;/code&gt;. What is the value? So you open the .env file, scroll to find the line, and then go back to where you were. I wanted to skip that step, so I built a small VS Code extension.&lt;/p&gt;

&lt;p&gt;It is called DotEnv Lens, and it is free and open source.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hover to see the value
&lt;/h2&gt;

&lt;p&gt;Hover over &lt;code&gt;process.env.ANYTHING&lt;/code&gt; in a JavaScript or TypeScript file, and the value appears right there, with the file it came from.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fy88wg4habkz8jurxoati.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fy88wg4habkz8jurxoati.gif" alt="Hovering over process.env in VS Code shows the value from the .env file" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The hover tells you more than the value:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A warning when the value is empty.&lt;/li&gt;
&lt;li&gt;An error when the key is not set anywhere.&lt;/li&gt;
&lt;li&gt;A hint when your &lt;code&gt;.env.example&lt;/code&gt; lists a key that your &lt;code&gt;.env&lt;/code&gt; is missing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It reads &lt;code&gt;.env.local&lt;/code&gt; first and then &lt;code&gt;.env&lt;/code&gt;, the way most frameworks do, and it updates as soon as you save the file.&lt;/p&gt;

&lt;h2&gt;
  
  
  What about secrets?
&lt;/h2&gt;

&lt;p&gt;Showing values is the whole point, so the full value is shown by default. But if you share your screen or record a video, one setting masks secret-looking values (keys with words like KEY, SECRET, TOKEN or PASSWORD, and passwords inside connection URLs). It is called &lt;code&gt;dotenvlens.maskSecrets&lt;/code&gt;, and it is off by default.&lt;/p&gt;

&lt;p&gt;The extension only reads local files. It makes no network calls.&lt;/p&gt;

&lt;h2&gt;
  
  
  Compare .env with your template
&lt;/h2&gt;

&lt;p&gt;The first feature I built was a comparison. Right-click a &lt;code&gt;.env&lt;/code&gt; file (or use the command palette) and run &lt;strong&gt;DotEnv Lens: Compare .env with template&lt;/strong&gt;. It tells you which keys are missing, extra, empty or duplicated compared with &lt;code&gt;.env.example&lt;/code&gt;. The report shows key names only, never values.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it is built
&lt;/h2&gt;

&lt;p&gt;The parser and the comparison logic are plain TypeScript with no VS Code dependency, so they are unit tested on their own (79 tests so far). The VS Code part is a thin layer on top. The parser handles comments, quoted values, &lt;code&gt;export&lt;/code&gt; prefixes, values with &lt;code&gt;=&lt;/code&gt; inside, and duplicate keys.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;Search for "DotEnv Lens" in the VS Code Extensions panel, or install it from the &lt;a href="https://marketplace.visualstudio.com/items?itemName=venkatarohithpesala.dotenv-lens" rel="noopener noreferrer"&gt;VS Code Marketplace&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The source code is on &lt;a href="https://github.com/venkatarohithpesala/dotenv-lens" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What should I build next?
&lt;/h2&gt;

&lt;p&gt;I am thinking about jump to definition, autocomplete for env keys, and Vite and Python support. Which one would you use? Tell me in the comments.&lt;/p&gt;

</description>
      <category>vscode</category>
      <category>javascript</category>
      <category>typescript</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
