Skip to content

Formatter

Nguyễn Hoàng Nam edited this page Jan 2, 2022 · 1 revision

Black

Make sure you have Python

pip install black

Stylua

Make sure you have Rust

cargo install stylua

Goimport

Make sure you have Go

go get golang.org/x/tools/cmd/goimports

Gofumpt

Make sure you have Go

go get mvdan.cc/gofumpt

Latexindent.pl

Make sure you have Perl, CMake

git clone https://github.com/cmhughes/latexindent.pl
cd latexindent.pl
mkdir build && cd build
cmake ../path-helper-files
sudo make install

Then install wherever perl's package missing 😅

Prettier

Make sure you have NodeJS

npm install -g prettier

Prettier-java

Make sure you have NodeJs

npm install -g prettier-plugin-java

Rustfmt

Make sure you have Rust

git clone https://github.com/rust-lang/rustfmt
cd rustfmt
cargo install --path .

Clone this wiki locally