Skip to content

craigtaub/our-own-prettier

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 

our-own-prettier

A simple VSCode extension which auto-formats 1 scenario.

How to run the extension

  1. Checkout + install code
  2. F5 (launch client in debug mode)
  3. Open files/test.js + highlight code
  4. Open "Command Palette"
  5. Click "Sexify it"

Scenarios

Scenario 1

Before

myFunction();

After

myFunction();

Scenario 2

Before

myFunction(one, two, three);

After

myFunction(
  one,
  two,
  three
);

About

Our own version of Prettier in <20 lines

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published