xgqfrms / vscode

:cn: :rocket: Visual Studio Code & VSCode Code Snippets All in One 🎉
https://vscode.xgqfrms.xyz
MIT License
3 stars 1 forks source link

codes snippets #7

Open xgqfrms opened 6 years ago

xgqfrms commented 6 years ago

codes snippets


{
    "JavaScript ES6 React Template": {
        "prefix": "js6r",
        "body": [
            "\"use strict\";",
            "",
            "/**",
            " * ",
            " * @author xgqfrms",
            " * @license MIT",
            " * @copyright gildata",
            " * ",
            " * @description $2",
            " * @augments $3",
            " * @example $4",
            " * ",
            " */",
            "",
            "const $2Generator = ($5datas = [], debug = false) => {",
            "    let result = ``;",
            "    // do something...",
            "    return $7result;",
            "};",
            "",
            "",
            "",
            "export default $2;",
            "",
            "export {",
            "    $2,",
            "};",
            "",
        ],
        "description": "JavaScript ES6 React Template & code snippets!"
    }
}
xgqfrms commented 6 years ago

https://www.cnblogs.com/xgqfrms/p/9196611.html

xgqfrms commented 6 years ago

https://www.cnblogs.com/xgqfrms/p/9143425.html

xgqfrms commented 6 years ago

https://github.com/gildata/RAIO/issues/246

https://github.com/gildata/RAIO/issues/242

xgqfrms commented 6 years ago

xgqfrms & vscode & codes snippets

https://code.visualstudio.com/docs/editor/userdefinedsnippets

https://code.visualstudio.com/docs/extensions/themes-snippets-colorizers

https://gist.github.com/xgqfrms-GitHub/a3c44b1cad00bc4a0f8d4c497e764ff1

xgqfrms commented 6 years ago

https://github.com/gildata/RAIO/issues/19

https://github.com/gildata/RAIO/labels?utf8=✓&q=vscode

xgqfrms commented 6 years ago

https://www.cnblogs.com/xgqfrms/p/5584080.html

https://code.sololearn.com/#html

xyzdata commented 5 years ago

vscode & code snippets

https://www.cnblogs.com/xgqfrms/p/9226993.html

xyzdata commented 5 years ago

json


{
    "NPM JSON Template": {
        "prefix": "njt",
        "body": [
            "{",
            "   \"name\": \"$1npm node project\",",
            "   \"description\": \"$2an open source project created by xgqfrms\",",
            "   \"author\": \"xgqfrms\",",
            "   \"version\": \"1.1.1\",",
            "   \"license\": \"MIT\",",
            "   \"private\": true,",
            "   \"scripts\": {",
            "       \"dev\": \"npm run start\",",
            "       \"app\": \"npm run build\",",
            "       \"rmrf\": \"rimraf dist/**/*\",",
            "       \"map\": \"rimraf dist/**/*.map\"",
            "   },",
            "   \"bin\": {",
            "       \"dev\": \"dev\",",
            "       \"app\": \"app\"",
            "   },",
            "   \"keywords\": [",
            "       \"Node.js\",",
            "       \"NPM\",",
            "       \"JS\"",
            "   ]",
            "",
            "}"
        ],
        "description": "NPM JSON Template & code snippets!"
    }
}

json5

JSON5


{
    "JSON5 Template": {
        "prefix": "json5",
        "body": [
            "{",
            "   \"name\": \"$1npm node project\",",
            "   \"description\": \"$2an open source project created by xgqfrms\",",
            "   \"author\": \"xgqfrms\",",
            "   \"version\": \"1.1.1\",",
            "   \"license\": \"MIT\",",
            "   \"private\": true,",
            "   \"scripts\": {",
            "       \"dev\": \"npm run start\",",
            "       \"app\": \"npm run build\",",
            "       \"rmrf\": \"rimraf dist/**/*\",",
            "       \"map\": \"rimraf dist/**/*.map\"",
            "   },",
            "   \"bin\": {",
            "       \"dev\": \"dev\",",
            "       \"app\": \"app\"",
            "   },",
            "   \"keywords\": [",
            "       \"Node.js\",",
            "       \"NPM\",",
            "       \"JS\"",
            "   ]",
            "",
            "}"
        ],
        "description": "JSON5 Template & code snippets!"
    }
}

jsonc

JSON with Comments


{
    "JSON with Comments Template": {
        "prefix": "jsonc",
        "body": [
            "{",
            "   \"name\": \"$1npm node project\",",
            "   \"description\": \"$2an open source project created by xgqfrms\",",
            "   \"author\": \"xgqfrms\",",
            "   \"version\": \"1.1.1\",",
            "   \"license\": \"MIT\",",
            "   \"private\": true,",
            "   \"scripts\": {",
            "       \"dev\": \"npm run start\",",
            "       \"app\": \"npm run build\",",
            "       \"rmrf\": \"rimraf dist/**/*\",",
            "       \"map\": \"rimraf dist/**/*.map\"",
            "   },",
            "   \"bin\": {",
            "       \"dev\": \"dev\",",
            "       \"app\": \"app\"",
            "   },",
            "   \"keywords\": [",
            "       \"Node.js\",",
            "       \"NPM\",",
            "       \"JS\"",
            "   ]",
            "",
            "}"
        ],
        "description": "JSON with Comments Template & code snippets!"
    }
}
xgqfrms commented 4 years ago

HTML5 Template

h5t

{
  "HTML5 Template": {
      "prefix": "h5t",
      "body": [
          "<!DOCTYPE html>",
          "<html lang=\"zh-Hans\">",
          "<head>",
          "    <meta charset=\"UTF-8\">",
          "    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">",
          "    <meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">",
          "    <title>$1</title>",
          "</head>",
          "<body>",
          "    <header>",
          "        <h1>$2</h1>",
          "    </header>",
          "    <main>",
          "        <section>",
          "            <a href=\"https://feiqa.xgqfrms.xyz/index.html\">$3</a>",
          "        </section>",
          "        <article></article>",
          "    <main>",
          "    <footer>",
          "        <p>copyriht&copy; xgqfrms 2019</p>",
          "    </footer>",
          "</body>",
          "</html>"
      ],
      "description": "HTML5 Template & code snippets!"
  }
}