From 230220c9f0e304d658aca39ef435d417160ca476 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A6=89=E0=A7=8E=E0=A6=B8=E0=A6=AC=20=E0=A6=B0=E0=A6=BE?= =?UTF-8?q?=E0=A7=9F=28Utsob=20Roy=29?= Date: Mon, 25 Feb 2019 15:39:22 +0600 Subject: [PATCH] Changed swapped $2 and $0 position for anonymous go function snippet. For anonymous go function (the snippet with the prefix "go") I think it will be more convenient if we end snippets in the body instead of the variable field. The function body is the largest of these 3 placeholders and will be in need of completion features more than any other. Therefore, I think, it is reasonable if we give it the $0 place. --- snippets/go.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/go.json b/snippets/go.json index 65bbf4ed5..0230a3687 100644 --- a/snippets/go.json +++ b/snippets/go.json @@ -197,7 +197,7 @@ }, "goroutine anonymous function": { "prefix": "go", - "body": "go func($1) {\n\t$2\n}($0)", + "body": "go func($1) {\n\t$0\n}($2)", "description": "Snippet for anonymous goroutine declaration" }, "goroutine function": {