1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vfmt: add support for VDIFF_TOOL, detect more diffing tools (#5857)

This commit is contained in:
Ryan Willis
2020-07-17 04:03:07 -07:00
committed by GitHub
parent f6947d111b
commit e804ba5294
8 changed files with 144 additions and 87 deletions

View File

@ -1768,16 +1768,16 @@ To generate documentation use vdoc, for example `v doc net.http`.
## Tools
### vfmt
### v fmt
You don't need to worry about formatting your code or setting style guidelines.
`vfmt` takes care of that:
`v fmt` takes care of that:
```v
v fmt file.v
```
It's recommended to set up your editor, so that vfmt runs on every save.
It's recommended to set up your editor, so that `v fmt -w` runs on every save.
A vfmt run is usually pretty cheap (takes <30ms).
Always run `v fmt -w file.v` before pushing your code.