File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ Note, code linting and code actions requires [setting up `sgconfig.yml`](https:/
1212
1313## Requirements
1414
15- - [ ast-grep] ( https://ast-grep.github.io/ )
15+ - [ ast-grep] ( https://ast-grep.github.io/ ) binary in your path.
1616
1717``` bash
1818# install via npm
@@ -25,6 +25,19 @@ cargo install ast-grep
2525brew install ast-grep
2626```
2727
28+ - setting up ast-grep project.
29+
30+ This is an optional step to enable code linting and code actions. It requires at least one file and one folder to work:
31+
32+ - ` sgconfig.yml ` , the [ project configuration file] ( https://ast-grep.github.io/reference/sgconfig.html )
33+ - a directory storing rule files, conventionally ` rules/ `
34+
35+ You can also use the [ command line tool] ( https://ast-grep.github.io/reference/cli/new.html ) to set it up.
36+
37+ ``` bash
38+ ast-grep new
39+ ```
40+
2841## Extension Settings
2942
3043This extension contributes the following settings:
You can’t perform that action at this time.
0 commit comments