{"id":396871,"date":"2021-03-16T05:13:52","date_gmt":"2021-03-15T21:13:52","guid":{"rendered":"http:\/\/4563.org\/?p=396871"},"modified":"2021-03-16T05:13:52","modified_gmt":"2021-03-15T21:13:52","slug":"vs-code-%e8%87%aa%e5%ae%9a%e4%b9%89%e8%81%94%e6%83%b3%e8%be%93%e5%85%a5%e8%af%8d%e5%ba%93","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=396871","title":{"rendered":"VS Code \u81ea\u5b9a\u4e49\u8054\u60f3\u8f93\u5165\u8bcd\u5e93?"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  VS Code \u81ea\u5b9a\u4e49\u8054\u60f3\u8f93\u5165\u8bcd\u5e93?               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dLvsYgJ8fiP8TGYU <\/span>  <span><i><\/i> 1<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u7531\u4e8e\u9700\u8981\u7f16\u8f91\u4e00\u4e9b\u7a0b\u5e8f\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u4e14\u7ecf\u5e38\u9700\u8981\u8f93\u5165\u56fa\u5b9a\u7684\u4e00\u4e9b\uff08\u4e0d\u8d85\u8fc7 10 \u7ec4\uff09\u53d8\u91cf\u540d\u79f0\uff08\u5f88\u957f\uff0c\u4e0d\u597d\u624b\u6253\uff09\uff0c\u5e0c\u671b\u6709\u4ec0\u4e48\u65b9\u6cd5 \/\u63d2\u4ef6\u53ef\u4ee5\u7b80\u5316\u8f93\u5165\u8fc7\u7a0b\u3002<\/p>\n<p>\u76ee\u524d\u4f7f\u7528\u7684 vscode intellisense \u6709\u8054\u60f3 \/\u81ea\u52a8\u8865\u5168\u529f\u80fd\u3002\u4f46\u4f3c\u4e4e\u53ea\u80fd\u4ece\u5f53\u524d\u6587\u4ef6\u6240\u4f7f\u7528\u7684\u8bed\u8a00\u5bf9\u5e94\u7684\u5173\u952e\u8bcd list \u4e2d\u663e\u793a\uff0c\u6216\u8005\u4ece\u4e0a\u4e0b\u6587\u300c\u5df2\u7ecf\u5b58\u5728\u7684\u300d\u53d8\u91cf\u540d\u4e2d\u9009\u62e9\u8865\u5168\uff0c\u56e0\u6b64\u7b2c\u4e00\u6b21\u8f93\u5165\u7684\u65f6\u5019\u8fd8\u662f\u6ca1\u6cd5\u81ea\u52a8\u5316\uff1b<\/p>\n<p>\u7cfb\u7edf\u8f93\u5165\u6cd5\u81ea\u5b9a\u4e49\u8bcd\u5e93\u4f3c\u4e4e\u4e5f\u5728 vscode \u754c\u9762\u65e0\u6cd5\u89e6\u53d1\uff1b<\/p>\n<p>\u8fd8\u6709\u5565\u65b9\u6cd5\u80fd\u5728 vscode \u91cc\u9762\u81ea\u5b9a\u4e49\u8bcd\u5e93\u7684\uff1f\u770b\u4e86\u4e00\u4e0b intellisense \u7684\u6587\u6863\u6ca1\u53d1\u73b0\u7c7b\u4f3c\u529f\u80fd<\/p>\n<ul>\n<li>\n<ul>\n<li>-\u6700\u540e\u6709\u4e00\u4e2a\u5927\u80c6\u7684\u60f3\u6cd5\uff1a\u6839\u636e\u4e0d\u540c\u6587\u4ef6\u62d3\u5c55\u540d [.ext01, .ext02&#8230;]\uff0c\u5339\u914d\u4e0d\u540c\u7684\u8bcd\u5e93 [list01, list02&#8230;] \uff08\u5c31\u662f\u4e0d\u77e5\u9053\u6709\u6ca1\u6709\u4eba\u771f\u7684\u505a\u51fa\u4e86\u8fd9\u6837\u7684\u63d2\u4ef6\u4e86\uff09<\/li>\n<\/ul>\n<\/li>\n<\/ul><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>7<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"5536059\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : codehz <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u53ef\u80fd\u9700\u8981\u7684\u662f snippet<br \/>\u53ef\u4ee5\u4f7f\u7528\u7c7b\u4f3c\u8fd9\u6837\u7684\u5199\u6cd5\u6307\u5b9a\u5728\u54ea\u4e9b\u8bed\u8a00\u751f\u6548<br \/>{<br \/> &#8220;My Awesome Snippet&#8221;: {<br \/> &#8220;prefix&#8221;: &#8220;abc&#8221;,<br \/> &#8220;lang&#8221;: [&#8220;css&#8221;, &#8220;php&#8221;, &#8220;html&#8221;],<br \/> &#8220;body&#8221;:[<br \/> &#8220;[email&#160;protected]#&#8221;<br \/> ]<br \/> }<br \/>}                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5536060\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : codehz <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0a\u9762\u7684\u4f8b\u5b50\u5f53\u6211\u6ca1\u8bf4\uff0c\u770b\u4e86\u4e00\u773c\u5e76\u4e0d\u80fd\u58f0\u660e\u591a\u4e2a\u8bed\u8a00\uff0c\u4e0d\u8fc7\u4f60\u53ef\u4ee5\u624b\u52a8\u5199\u597d\u51e0\u4efd\uff0c\u53cd\u6b63\u90fd\u662f\u4e00\u6b21\u6027\u7f16\u5199\u7684\u4e8b\u60c5                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5536061\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : noqwerty <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @codehz #2 \u53ef\u4ee5\u5728 global snippet file \u91cc\u9762\u5b9a\u4e49\uff1aMulti-language and global user-defined snippets are all defined in &#8220;global&#8221; snippet files (JSON with the file suffix .code-snippets), which is also accessible through Preferences: Configure User Snippets. In a global snippets file, a snippet definition may have an additional scope property that takes one or more language identifiers, which makes the snippet available only for those specified languages. If no scope property is given, then the global snippet is available in all languages.<\/p>\n<p>\u53c2\u8003\u94fe\u63a5\uff1a https:\/\/code.visualstudio.com\/docs\/editor\/userdefinedsnippets#_language-snippet-scope                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5536062\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Trim21 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5982\u679c\u662f\u7f16\u8f91 JSON toml \u8fd9\u7c7b\u7684\u914d\u7f6e\u6587\u4ef6\u53ef\u4ee5\u5199\u4e2a JSON schema                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5536063\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : molvqingtai <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6709\u4e2a\u4eba\u5de5\u667a\u80fd\u8865\u5168\u63d2\u4ef6\u633a\u597d\u7528\u7684\uff0c\u5c31\u662f\u6709\u70b9\u8017\u5185\u5b58 https:\/\/github.com\/codota\/tabnine-vscode                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5536064\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : imrealadmin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             vscode \u652f\u6301\u591a\u4e2a\u6587\u4ef6\u7684\u5173\u952e\u8bcd\u63a8\u8350\u7684\uff0c\u914d\u7f6e\u5982\u4e0b\uff1a<\/p>\n<p>&#8220;`json<br \/> &#8220;editor.wordBasedSuggestions&#8221;: true,<br \/> &#8220;editor.wordBasedSuggestionsMode&#8221;: &#8220;allDocuments&#8221;,<br \/>&#8220;`                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5536065\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : dLvsYgJ8fiP8TGYU <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @codehz \u611f\u8c22\uff0c\u5df2\u7ecf\u7528 snippet \u5b9e\u73b0\u4e86\u81ea\u5b9a\u4e49\u8bcd\u5e93                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>VS Code \u81ea\u5b9a\u4e49\u8054\u60f3\u8f93\u5165\u8bcd\u5e93&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/396871"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=396871"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/396871\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=396871"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=396871"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=396871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}