json 用于Visual Studio代码的AsciiDoc代码段

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了json 用于Visual Studio代码的AsciiDoc代码段相关的知识,希望对你有一定的参考价值。

{
  "Shell Code": {
      "prefix": "shell",
      "body": [
        "[source,shell,subs=\"attributes\"]",
        "----",
        "$1",
        "----",
        "$0"
      ],
      "description": "Create a shell code example"
  },

  "Heading 1": {
    "prefix": "h1",
    "body": [
      "= ${1:heading}",
      "",
      "$0"
    ],
    "description": "Heading 1"
  },

  "Heading 2": {
    "prefix": "h2",
    "body": [
      "== ${1:heading}",
      "",
      "$0"
    ],
    "description": "Heading 2"
  },

  "Heading 3": {
    "prefix": "h3",
    "body": [
      "=== ${1:heading}",
      "",
      "$0"
    ],
    "description": "Heading 3"
  },

  "Heading 4": {
    "prefix": "h4",
    "body": [
      "==== ${1:heading}",
      "",
      "$0"
    ],
    "description": "Heading 4"
  },

  "Glossary Entry": {
    "prefix": "glos",
    "body": [
      "[[${1:label}]]${2:Name}::",
      "  $3",
      "$0"
    ],
    "description": "Glossary entry"
  },

  "New Asciidoc Book": {
    "prefix": "book",
    "body": [
      ":doctype: book",
      ":encoding: utf-8",
      ":lang: de",
      ":toc: left",
      ":numbered:",
      ":autofit:",
      ":source-highlighter: rouge",
      ":pdf-stylesdir: themes/",
      ":pdf-style: konsens",
      ":chapter-label:",
      ":toc-title: Inhalt",
      ":appendix-caption:",
      "$0"
    ]
  },

  "Include": {
    "prefix": "inc",
    "body": [
      "include::$1.adoc[]",
      "$0"
    ],
    "description": "Include file"
  },

  "Reference": {
    "prefix": "ref",
    "body": [
      "* [[[${1:label}]]] ${2:Description}:",
      "  ${3:link}",
      "$0"
    ],
    "description": "URL reference"
  },

  "Inline Link": {
    "prefix": "<",
    "body": "<<${1:name},${2}>>$0",
    "description": "Create an inline link"
  },

  "Inline Code": {
    "prefix": "`",
    "body": "`$1` $0",
    "description": "Create an inline code part"
  },

  "Italic Text": {
    "prefix": "i",
    "body": "_$1_ $0",
    "description": "Write italic text"
  },

  "Bold Text": {
    "prefix": "b",
    "body": "*$1* $0",
    "description": "Write bold text"
  },
  
  "URL": {
    "prefix": "url",
    "body": "${1:url}[${2:text}] $0",
    "description": "Add external URL reference"
  }
}

以上是关于json 用于Visual Studio代码的AsciiDoc代码段的主要内容,如果未能解决你的问题,请参考以下文章

用于 bower.json 文件的 Visual Studio 2015 RC 上的 Intellisense 无法正常工作。

Visual Studio (2013) 用于 C# 解析的 json 对象的智能感知

json Visual Studio代码用户代码段

json Visual Studio代码的键绑定

json Visual Studio代码设置同步要点

json Visual Studio代码设置同步要点