Skip to content

axmmisaka/felonious-cpp-formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A Pythonic C++ formatter that deserves capital punishment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published