I
I
Illia T2021-03-11 19:53:17
go
Illia T, 2021-03-11 19:53:17

VS Code, Go extension: is it possible to modify standard snippets or create custom ones, and how?

For example, pkgm lacks imports in their place, as for me.
I wanted to make something like pkgim

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2021-07-11
@alshch

File -> Preferences -> User snippets
Example for GO:
"Simple error handler": {
"prefix": "err",
"body": [
"if err != nil {",
"",
"}"
],
" description": "Simple error handler"
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question