Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
04022876
Commit
04022876
authored
Feb 21, 2021
by
Waqar Ahmed
Committed by
Christoph Cullmann
Feb 21, 2021
Browse files
Add prettier, rustfmt and gofmt to external tools
parent
51634bf8
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/externaltools/defaultexternaltoolsrc
View file @
04022876
[Global]
tools=1
1
version=
1
tools=1
4
version=
2
[Tool 0]
actionName=externaltool_gitcola
...
...
@@ -166,3 +166,48 @@ output=ReplaceCurrentDocument
reload=false
save=CurrentDocument
workingDir=%{Document:Path}
[Tool 11]
actionName=externaltool_GoFmt
arguments=%{Document:FileName}
category=Tools
cmdname=gofmt-full-file
executable=gofmt
icon=text-x-go
input=
mimetypes=text/x-go
name=Go Fmt Full File
output=ReplaceCurrentDocument
reload=false
save=CurrentDocument
workingDir=%{Document:Path}
[Tool 12]
actionName=externaltool_RustFmt
arguments=--emit stdout %{Document:FileName}
category=Tools
cmdname=rustfmt-full-file
executable=rustfmt
icon=text-x-rust
input=
mimetypes=text/x-rust
name=Rust Fmt Full File
output=ReplaceCurrentDocument
reload=false
save=CurrentDocument
workingDir=%{Document:Path}
[Tool 13]
actionName=externaltool_Prettier
arguments=%{Document:FileName}
category=Tools
cmdname=prettier-format-full-file
executable=prettier
icon=
input=
mimetypes=
name=Prettier Format Current File
output=ReplaceCurrentDocument
reload=false
save=CurrentDocument
workingDir=%{Document:Path}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment