<?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: Pamal Jayasinghe</title>
    <description>The latest articles on DEV Community by Pamal Jayasinghe (@pamal_jayasinghe_3db74f2a).</description>
    <link>https://dev.to/pamal_jayasinghe_3db74f2a</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%2F4188026%2F10c96051-3a69-40a9-961a-aac9b491bafa.png</url>
      <title>DEV Community: Pamal Jayasinghe</title>
      <link>https://dev.to/pamal_jayasinghe_3db74f2a</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pamal_jayasinghe_3db74f2a"/>
    <language>en</language>
    <item>
      <title>CodeNeat: The Best Free Code Formatter for VS Code (41 Languages, One Extension)</title>
      <dc:creator>Pamal Jayasinghe</dc:creator>
      <pubDate>Fri, 16 Oct 2026 06:49:50 +0000</pubDate>
      <link>https://dev.to/pamal_jayasinghe_3db74f2a/codeneat-the-best-free-code-formatter-for-vs-code-41-languages-one-extension-4p4h</link>
      <guid>https://dev.to/pamal_jayasinghe_3db74f2a/codeneat-the-best-free-code-formatter-for-vs-code-41-languages-one-extension-4p4h</guid>
      <description>&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; CodeNeat is a free, open-source &lt;strong&gt;VS Code formatter extension&lt;/strong&gt; that formats &lt;strong&gt;41 languages&lt;/strong&gt; with one install. It uses official engines like Prettier, Ruff, gofmt and clang-format, gives you a &lt;strong&gt;visual settings dashboard&lt;/strong&gt; instead of JSON config files, and shows a &lt;strong&gt;live before/after preview&lt;/strong&gt; before anything changes. No account, no telemetry, no network requests.&lt;/p&gt;

&lt;p&gt;🛒 &lt;strong&gt;Install from the VS Code Marketplace:&lt;/strong&gt; &lt;a href="https://marketplace.visualstudio.com/items?itemName=PamalJayasinghe.codeneat" rel="noopener noreferrer"&gt;CodeNeat on Visual Studio Marketplace&lt;/a&gt;&lt;br&gt;
👉 &lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/pamaljayasinghe/CodeNeat" rel="noopener noreferrer"&gt;github.com/pamaljayasinghe/CodeNeat&lt;/a&gt;&lt;/p&gt;


&lt;h2&gt;
  
  
  Why I Built Another Code Formatter for VS Code
&lt;/h2&gt;

&lt;p&gt;If you work in more than one language, your VS Code setup probably looks like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Prettier for JavaScript, TypeScript, HTML and CSS&lt;/li&gt;
&lt;li&gt;Black or Ruff for Python&lt;/li&gt;
&lt;li&gt;clang-format for C and C++&lt;/li&gt;
&lt;li&gt;A separate extension for Go, PHP, SQL, Lua, Bash…&lt;/li&gt;
&lt;li&gt;And a pile of &lt;code&gt;.prettierrc&lt;/code&gt;, &lt;code&gt;pyproject.toml&lt;/code&gt; and &lt;code&gt;.clang-format&lt;/code&gt; files to keep them in line&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Every language means another extension, another config file and another set of conflicts in &lt;strong&gt;Format on Save&lt;/strong&gt;. I also noticed I was spending AI tokens asking assistants to fix indentation, which a formatter should do for free.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;CodeNeat: one extension, every language, your style.&lt;/strong&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  What Is CodeNeat?
&lt;/h2&gt;

&lt;p&gt;CodeNeat is a &lt;strong&gt;multi-language code formatter for Visual Studio Code&lt;/strong&gt;. It formats 41 languages and file formats through their official formatting engines, and replaces hand-edited configuration with a &lt;strong&gt;visual dashboard&lt;/strong&gt; and a &lt;strong&gt;live preview&lt;/strong&gt;.&lt;/p&gt;
&lt;h3&gt;
  
  
  Key Features at a Glance
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Feature&lt;/th&gt;
&lt;th&gt;What you get&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;🌐 &lt;strong&gt;41 languages&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;32 ready on install, 9 more with guided setup&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;⚙️ &lt;strong&gt;Built-in engines&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;Prettier, Ruff, gofmt, clang-format, StyLua, shfmt, dart format and more&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;🎛️ &lt;strong&gt;Visual settings dashboard&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;15 searchable sections, no JSON editing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;👀 &lt;strong&gt;Live before/after preview&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;See every changed line before you save&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;📁 &lt;strong&gt;Respects your project&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;.editorconfig&lt;/code&gt;, &lt;code&gt;.prettierrc&lt;/code&gt;, &lt;code&gt;.clang-format&lt;/code&gt;, &lt;code&gt;rustfmt.toml&lt;/code&gt; take priority and are never modified&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;🔒 &lt;strong&gt;100% private&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;No account, no telemetry, no network requests&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;💸 &lt;strong&gt;Free and open source&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;Apache 2.0 licence&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;h2&gt;
  
  
  Which Languages Does CodeNeat Support?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Ready on install (32):&lt;/strong&gt; HTML, CSS, SCSS, Less, JavaScript, TypeScript, JSX, TSX, JSON, YAML, Markdown, MDX, Vue, Angular templates, GraphQL, XML, Java, Python, C, C++, C#, PHP, Go, Dart, Bash, Lua, SQL, TOML, Dockerfile, Protocol Buffers and LaTeX.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Guided setup:&lt;/strong&gt; Rust, Ruby, Kotlin, Scala, Swift, F#, PowerShell, R and Terraform use the formatter from their own toolchain. If one is missing, CodeNeat shows you the exact install command, asks you to confirm, and runs it in a terminal.&lt;/p&gt;

&lt;p&gt;No other extension is required.&lt;/p&gt;
&lt;h2&gt;
  
  
  How to Format Code in VS Code with CodeNeat
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F86gnhsesre17zb36ddgq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F86gnhsesre17zb36ddgq.png" alt="CodeNeat VS Code extension formatting messy JavaScript code into clean code - before and after" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Install&lt;/strong&gt; the extension (see the install section below).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Open&lt;/strong&gt; any supported file.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Click the CodeNeat button&lt;/strong&gt; at the top right of the editor.&lt;/li&gt;
&lt;li&gt;Changed lines are &lt;strong&gt;highlighted in green&lt;/strong&gt;. Choose &lt;strong&gt;Keep Changes&lt;/strong&gt; or &lt;strong&gt;Undo Changes&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That's it. Prefer the keyboard? Use:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Windows / Linux:  Ctrl + Alt + Shift + F
macOS:            ⌘ + ⌥ + ⇧ + F
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  All the Ways to Format
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Editor button&lt;/strong&gt; at the top right&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keyboard shortcut&lt;/strong&gt; (above)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Right-click menu:&lt;/strong&gt; Format Document, Format Selection, Format Document with Review&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Status bar:&lt;/strong&gt; click &lt;em&gt;CodeNeat&lt;/em&gt; at the bottom right&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Automatically:&lt;/strong&gt; Format on Save, on Paste and on Type&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Format Workspace:&lt;/strong&gt; format a whole folder with a preview, progress and a summary (skips &lt;code&gt;node_modules&lt;/code&gt;, build output and everything in &lt;code&gt;.gitignore&lt;/code&gt;)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How to Enable Format on Save in VS Code
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Open the CodeNeat dashboard from the Activity Bar.&lt;/li&gt;
&lt;li&gt;Go to &lt;strong&gt;Auto Formatting&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Make CodeNeat the &lt;strong&gt;default formatter&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Switch on &lt;strong&gt;Format on Save&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Or run the command &lt;code&gt;CodeNeat: Use CodeNeat as Default Formatter&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Customize Your Code Style Without JSON
&lt;/h2&gt;

&lt;p&gt;The settings dashboard lets you set:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Line length:&lt;/strong&gt; 60 to 160 presets, or any value from 40 to 300 (default 120)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Indentation:&lt;/strong&gt; spaces or tabs, 2, 4, 8 or custom&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Style:&lt;/strong&gt; quotes, semicolons, trailing commas, brace position, blank lines, import sorting&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Per-language rules:&lt;/strong&gt; apply a setting to all languages or just one, for yourself or the whole workspace&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Profiles:&lt;/strong&gt; Standard, Compact, Readable and Team Style built in, plus your own (import/export to share with your team)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Every change shows up in the &lt;strong&gt;live preview&lt;/strong&gt; before you press Apply.&lt;/p&gt;

&lt;p&gt;Language-specific extras include C/C++/C# base styles (LLVM, Google, Microsoft, Mozilla, WebKit, Chromium, GNU), Python quote style, SQL dialect and keyword case, and XML whitespace handling.&lt;/p&gt;

&lt;h2&gt;
  
  
  CodeNeat vs Prettier: What's the Difference?
&lt;/h2&gt;

&lt;p&gt;Prettier is excellent, and CodeNeat &lt;strong&gt;uses Prettier under the hood&lt;/strong&gt; for web languages. The difference is scope:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Prettier extension&lt;/th&gt;
&lt;th&gt;CodeNeat&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Languages&lt;/td&gt;
&lt;td&gt;Web languages (JS, TS, CSS, HTML, JSON, YAML, Markdown…)&lt;/td&gt;
&lt;td&gt;41, including Python, Go, C/C++, C#, Java, PHP, Dart, SQL, Lua, Bash, Rust&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Configuration&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;.prettierrc&lt;/code&gt; file&lt;/td&gt;
&lt;td&gt;Visual dashboard + respects &lt;code&gt;.prettierrc&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Preview&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Live side-by-side diff&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Review before change&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Yes (Enter to keep, Escape to undo)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If you only write JavaScript, Prettier alone is enough. If you switch between languages, CodeNeat replaces a stack of formatter extensions with one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Is CodeNeat Safe for My Code?
&lt;/h2&gt;

&lt;p&gt;Yes. CodeNeat:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Makes &lt;strong&gt;no network requests&lt;/strong&gt; and collects &lt;strong&gt;no telemetry&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Never edits your project config files&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Never changes behaviour&lt;/strong&gt;, only layout. Code-changing options like removing unused imports are off by default and clearly labelled&lt;/li&gt;
&lt;li&gt;Leaves files over the size or time limit untouched and tells you why&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How to Install CodeNeat
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Option 1: VS Code Marketplace (recommended)
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Open the &lt;a href="https://marketplace.visualstudio.com/items?itemName=PamalJayasinghe.codeneat" rel="noopener noreferrer"&gt;CodeNeat page on the VS Code Marketplace&lt;/a&gt; and click &lt;strong&gt;Install&lt;/strong&gt;, or&lt;/li&gt;
&lt;li&gt;In VS Code, open the &lt;strong&gt;Extensions&lt;/strong&gt; view (&lt;code&gt;Ctrl+Shift+X&lt;/code&gt; / &lt;code&gt;⌘+⇧+X&lt;/code&gt;), search &lt;strong&gt;CodeNeat&lt;/strong&gt; and click &lt;strong&gt;Install&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You can also install it from the terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;code &lt;span class="nt"&gt;--install-extension&lt;/span&gt; PamalJayasinghe.codeneat
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Option 2: Install from a VSIX
&lt;/h3&gt;

&lt;p&gt;Download the &lt;code&gt;.vsix&lt;/code&gt; from the &lt;a href="https://github.com/pamaljayasinghe/CodeNeat/releases" rel="noopener noreferrer"&gt;GitHub releases page&lt;/a&gt;, then run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;code &lt;span class="nt"&gt;--install-extension&lt;/span&gt; codeneat.vsix
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or in VS Code: &lt;strong&gt;Extensions view → … menu → Install from VSIX…&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Requires &lt;strong&gt;VS Code 1.90 or newer&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What is the best code formatter extension for VS Code?&lt;/strong&gt;&lt;br&gt;
For a single web project, Prettier. For multi-language work, CodeNeat formats 41 languages with one extension, a visual settings dashboard and a live preview.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does CodeNeat work with Python?&lt;/strong&gt;&lt;br&gt;
Yes. It uses Ruff (built in) and lets you set quote style, indentation and list layout.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I use my existing &lt;code&gt;.prettierrc&lt;/code&gt; or &lt;code&gt;.editorconfig&lt;/code&gt;?&lt;/strong&gt;&lt;br&gt;
Yes. Project config files take priority by default and are never modified.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Where can I download CodeNeat?&lt;/strong&gt;&lt;br&gt;
From the &lt;a href="https://marketplace.visualstudio.com/items?itemName=PamalJayasinghe.codeneat" rel="noopener noreferrer"&gt;VS Code Marketplace&lt;/a&gt; (search "CodeNeat" in the Extensions view) or from the GitHub releases page.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is CodeNeat free?&lt;/strong&gt;&lt;br&gt;
Yes. It is free and open source under the Apache License 2.0.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does it work offline?&lt;/strong&gt;&lt;br&gt;
Yes. All engines are bundled. No account or internet connection is needed.&lt;/p&gt;
&lt;h2&gt;
  
  
  Try It and Tell Me What You Think
&lt;/h2&gt;

&lt;p&gt;🛒 &lt;strong&gt;Install it:&lt;/strong&gt; &lt;a href="https://marketplace.visualstudio.com/items?itemName=PamalJayasinghe.codeneat" rel="noopener noreferrer"&gt;VS Code Marketplace&lt;/a&gt;&lt;br&gt;
⭐ &lt;strong&gt;Star it on GitHub:&lt;/strong&gt; &lt;a href="https://github.com/pamaljayasinghe/CodeNeat" rel="noopener noreferrer"&gt;github.com/pamaljayasinghe/CodeNeat&lt;/a&gt;&lt;br&gt;
📖 &lt;strong&gt;Read the intro on Medium:&lt;/strong&gt; &lt;a href="https://medium.com/@pamaljayasinghe340/stop-spending-ai-tokens-on-indentation-meet-codeneat-vscode-extension-d7dc2ac06ebc" rel="noopener noreferrer"&gt;Stop Spending AI Tokens on Indentation: Meet CodeNeat&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Which language should get more formatting options next? Drop a comment below 👇&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#vscode #codeformatter #prettier #opensource #webdev #productivity #python #javascript #typescript #developertools
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>vscode</category>
      <category>productivity</category>
      <category>opensource</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
