Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 3.22 KB

README.md

File metadata and controls

28 lines (19 loc) · 3.22 KB

README

An extension inspired by a meme.
meme

Then, I promised folks in a groupchat that I will make a linter (actually formatter) to achieve this goal... and here it is.
promise

This formatter makes C/C++ Pythonic and ramps up your blood pressure. I think using it on actual code should be considered a felony.

Usage

This is a formatter built with VS Code Formatter API. To call, choose c or cpp as the language, and select "format document" or use Shift+Alt+F.

For now, you must ensure all characters has the same width for it to work - no CJK characters, and you will need to convert tabs to spaces beforehand.
convert

Showcases

With GNU Coreutils:
before
after

With Linux Kernel: before after

Licence

Please refer to LICENCE file. Note that VS Code Marketplace will not recognise this file correctly because Americans who can't spell proper English built it.