<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.mutigeraffe.com/index.php?action=history&amp;feed=atom&amp;title=StatLens%3ACommands_and_Settings</id>
	<title>StatLens:Commands and Settings - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.mutigeraffe.com/index.php?action=history&amp;feed=atom&amp;title=StatLens%3ACommands_and_Settings"/>
	<link rel="alternate" type="text/html" href="https://wiki.mutigeraffe.com/index.php?title=StatLens:Commands_and_Settings&amp;action=history"/>
	<updated>2026-10-21T07:37:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.mutigeraffe.com/index.php?title=StatLens:Commands_and_Settings&amp;diff=2509&amp;oldid=prev</id>
		<title>Maintenance script: StatLens wiki</title>
		<link rel="alternate" type="text/html" href="https://wiki.mutigeraffe.com/index.php?title=StatLens:Commands_and_Settings&amp;diff=2509&amp;oldid=prev"/>
		<updated>2026-10-20T21:29:38Z</updated>

		<summary type="html">&lt;p&gt;StatLens wiki&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The ids of the command, the view and the settings still start with &amp;lt;code&amp;gt;projectStats&amp;lt;/code&amp;gt;, the name the extension had before version 4.0.0.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Command !! Id !! What it does&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;Stat Lens: Rescan&amp;#039;&amp;#039; || &amp;lt;code&amp;gt;projectStats.refresh&amp;lt;/code&amp;gt; || Scans the workspace again. If a scan is already running, it waits for that scan instead of starting a second one.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
You can run it from the Command Palette (&amp;lt;code&amp;gt;Ctrl+Shift+P&amp;lt;/code&amp;gt;), with the refresh icon in the title bar of the Stat Lens view, or with the &amp;#039;&amp;#039;Scan now&amp;#039;&amp;#039; link in the empty view.&lt;br /&gt;
&lt;br /&gt;
If no folder is open, the command only shows the message &amp;lt;code&amp;gt;Stat Lens: Please open a folder first.&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Keybindings ==&lt;br /&gt;
Stat Lens adds no keybindings. You can assign one to &amp;lt;code&amp;gt;projectStats.refresh&amp;lt;/code&amp;gt; under &amp;#039;&amp;#039;File&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;Preferences&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;Keyboard Shortcuts&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== Menus ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Place !! Entry&lt;br /&gt;
|-&lt;br /&gt;
| Title bar of the Stat Lens view || Refresh icon, runs &amp;#039;&amp;#039;Stat Lens: Rescan&amp;#039;&amp;#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== View ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! View !! Id !! Where&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;Stat Lens&amp;#039;&amp;#039; || &amp;lt;code&amp;gt;projectStats.view&amp;lt;/code&amp;gt; || Explorer side bar&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
You can drag the view to another side bar or hide it like any other view. See [[StatLens:Sidebar View|Sidebar View]].&lt;br /&gt;
&lt;br /&gt;
== Settings ==&lt;br /&gt;
Open the settings with &amp;#039;&amp;#039;File&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;Preferences&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;Settings&amp;#039;&amp;#039; and search for &amp;#039;&amp;#039;&amp;#039;Stat Lens&amp;#039;&amp;#039;&amp;#039;. Both settings can be set for the user or for a single workspace. A change starts a new scan at once.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Setting !! Type !! Default !! What it does&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;projectStats.ignoreComments&amp;lt;/code&amp;gt; || boolean || &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt; || Leaves out lines that start like a comment when counting lines of code. See [[StatLens:Scanning#Ignoring comment lines|Ignoring comment lines]].&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;projectStats.excludeFolders&amp;lt;/code&amp;gt; || array of strings || &amp;lt;code&amp;gt;node_modules&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;obj&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;.git&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;dist&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;out&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;.vs&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;.vscode&amp;lt;/code&amp;gt; || Folder names that are always skipped, on any level, in addition to the &amp;lt;code&amp;gt;.gitignore&amp;lt;/code&amp;gt; in the root folder. The names must match exactly. Paths and wildcards are not supported.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Setting &amp;lt;code&amp;gt;projectStats.excludeFolders&amp;lt;/code&amp;gt; replaces the whole list. To add a folder, repeat the defaults:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;projectStats.excludeFolders&amp;quot;: [&lt;br /&gt;
    &amp;quot;node_modules&amp;quot;, &amp;quot;bin&amp;quot;, &amp;quot;obj&amp;quot;, &amp;quot;.git&amp;quot;, &amp;quot;dist&amp;quot;, &amp;quot;out&amp;quot;, &amp;quot;.vs&amp;quot;, &amp;quot;.vscode&amp;quot;,&lt;br /&gt;
    &amp;quot;coverage&amp;quot;&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Supported workspaces ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Workspace !! Supported&lt;br /&gt;
|-&lt;br /&gt;
| Local folder || Yes&lt;br /&gt;
|-&lt;br /&gt;
| Multi-root workspace || Only the first folder is scanned&lt;br /&gt;
|-&lt;br /&gt;
| Untrusted workspace (Restricted Mode) || No, the extension is disabled&lt;br /&gt;
|-&lt;br /&gt;
| Virtual workspace (for example a GitHub repository opened in the browser) || No&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Stat Lens adds no languages, file types or custom editors. It only reads files.&lt;br /&gt;
&lt;br /&gt;
{{StatLens Nav}}&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>