diff options
| author | Will Hawkins <[email protected]> | 2023-05-19 13:01:18 -0400 |
|---|---|---|
| committer | Will Hawkins <[email protected]> | 2023-05-19 13:01:18 -0400 |
| commit | cc93fd30fcfcb546131b9448a5637dead3e88953 (patch) | |
| tree | d6d4543a7e528eeb5ab34f7dda720fa61f2b0619 /README.md | |
| parent | 6042a345251a100c70b787251d1c6c8438189a1b (diff) | |
Add VSCode Configuration Information
Using `gofumpt` via `gopls` makes it easier to maintain our
100-character-per-line limit. A `settings.json` file makes it easier to
configure and instructions in the `README.md` help, too.
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -127,6 +127,22 @@ As a bonus, there are unit tests to check for regressions: $ go test ./timeoutat ./ms ./utilities ./traceable ``` +### IDE Configuration + +If you are developing with VSCode, you can use `ide/settings.json` as the +[workspace's](https://code.visualstudio.com/docs/editor/workspaces) `settings.json` file +in order to meet the project's existing style. In particular, this file will configure +VSCode to use an alternate go formatter known as [`gofumpt`](https://github.com/mvdan/gofumpt) +and, in turn, give `gofumpt` specific configuration directives. + +To use the included `settings.json` file, simply drop it in the `.vscode` directory of the folder +containing this `README.md` file. + +>Note: If you have existing workspace settings, you may be required to take additional +steps to incorporate the information in the given `settings.json` file. + +> You may have to create the `.vscode` directory if it does not already exist. + ## References [RFC2026] https://datatracker.ietf.org/doc/html/rfc2026 |
