how can I edit code snippet cursor position JSON
Asked Answered
B

1

14

My code snippets is;

  "echo": {
      "prefix": "echo",
      "body": [
          "echo \"\";"
      ],
      "description": "a"
  }

How I get cursor position in double quotes?

Bahrain answered 20/7, 2020 at 13:59 Comment(0)
E
28

$0 signals the location of the final cursor stop

"echo": {
      "prefix": "echo",
      "body": [
          "echo \"$0\";"
      ],
      "description": "a"
  }
Economical answered 20/7, 2020 at 14:0 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.