{"id":42390,"date":"2025-06-08T15:27:27","date_gmt":"2025-06-08T07:27:27","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/42390.html"},"modified":"2025-06-08T15:27:27","modified_gmt":"2025-06-08T07:27:27","slug":"%e9%87%8d%e6%96%b0%e5%ae%89%e8%a3%85%e8%a7%a3%e5%86%b3mac-vscode%e7%82%b9%e5%87%bb%e4%b8%8d%e8%83%bd%e8%b7%b3%e8%bd%ac%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/42390.html","title":{"rendered":"\u91cd\u65b0\u5b89\u88c5\u89e3\u51b3mac vscode\u70b9\u51fb\u4e0d\u80fd\u8df3\u8f6c\u95ee\u9898"},"content":{"rendered":"<h3>\u4f9d\u6b21\u6267\u884c\u4ee5\u4e0b\u8fc7\u7a0b<\/h3>\n<ul>\n<li>\n<p>\u5220\u9664vscode\u7a0b\u5e8f<\/p>\n<\/li>\n<li>\n<p>\u5220\u9664vscode\u7684\u7f13\u5b58\u6587\u4ef6\u5939(xxx\u8868\u793a\u4f60\u7684\u7528\u6237\u540d)<\/p>\n<p>\/Users\/xxx\/Library\/Application Support\/Code<\/p>\n<\/li>\n<li>\n<p>\u91cd\u65b0\u5b89\u88c5vscode<\/p>\n<p>\u8fd9\u65f6\u5019\u4f60\u4f1a\u53cd\u5411\u53ef\u4ee5\u8df3\u8f6c\u9879\u76ee\u5185\u7684import \u6587\u4ef6\u4ee5\u53ca\u81ea\u5b9a\u4e49\u51fd\u6570\u3002\u4f46\u662fimport\u5b89\u88c5\u7684\u5305\u8fd8\u4e0d\u80fd\u70b9\u51fb\u8df3\u8f6c<\/p>\n<\/li>\n<li>\n<p>\u914d\u7f6epython\u73af\u5883<\/p>\n<p>\u5982\u679c\u4f60\u7535\u8111\u6ca1\u6709\u5b89\u88c5python\u73af\u5883&#xff0c;\u8bf7\u8fdb\u884c\u5b89\u88c5\u3002 \u7136\u540eCtrl&#043;Shift&#043;P\u3002\u5728\u6587\u672c\u6846\u8f93\u5165Python: Restart Language Server\u3002\u9009\u62e9\u4e00\u4e2apython\u8def\u5f84 \u8fd9\u65f6\u5019\u4f60\u4f1a\u53d1\u73b0import\u5b89\u88c5\u7684\u5305\u5c31\u53ef\u4ee5\u8df3\u8f6c\u4e86\u3002\u6ca1\u6709\u5b89\u88c5\u7684\u5305\u4f1a\u6807\u8bb0\u51fa\u6765\u3002<\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u5f7b\u5e95\u5378\u8f7d\u5e76\u91cd\u65b0\u5b89\u88c5VSCode\u7684\u65b9\u6cd5\uff1a\u5148\u5220\u9664\u7a0b\u5e8f\u53ca\u5176\u7f13\u5b58\u6587\u4ef6\u5939\uff08\u4f4d\u4e8e\/Users\/xxx\/Library\/Application Support\/Code\uff09\uff0c\u91cd\u65b0\u5b89\u88c5\u540e\u9879\u76ee\u5185\u6587\u4ef6\u8df3\u8f6c\u529f\u80fd\u5373\u53ef\u6062\u590d\u3002\u9488\u5bf9Python\u73af\u5883\u95ee\u9898\uff0c\u5efa\u8bae\u5148\u5b89\u88c5Python\uff0c\u901a\u8fc7Ctrl+Shift+P\u8c03\u51fa\u547d\u4ee4\u9762\u677f\u6267\u884c&quot;Python: Restart Language Server&quot;\u5e76\u9009\u62e9Python\u8def\u5f84\uff0c\u5373\u53ef\u5b9e\u73b0\u7b2c\u4e09\u65b9\u5305\u7684\u8df3\u8f6c\u529f\u80fd\uff0c\u672a\u5b89\u88c5\u7684\u5305\u4f1a\u88ab\u6807\u8bb0\u51fa\u6765\u3002_vscode \u70b9\u51fb\u6587\u4ef6\u5f15\u7528\u65e0\u6cd5\u8df3\u8f6c<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[70,330,76,654],"topic":[],"class_list":["post-42390","post","type-post","status-publish","format-standard","hentry","category-server","tag-ide","tag-macos","tag-vscode","tag-654"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u91cd\u65b0\u5b89\u88c5\u89e3\u51b3mac vscode\u70b9\u51fb\u4e0d\u80fd\u8df3\u8f6c\u95ee\u9898 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/42390.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u91cd\u65b0\u5b89\u88c5\u89e3\u51b3mac vscode\u70b9\u51fb\u4e0d\u80fd\u8df3\u8f6c\u95ee\u9898 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u5f7b\u5e95\u5378\u8f7d\u5e76\u91cd\u65b0\u5b89\u88c5VSCode\u7684\u65b9\u6cd5\uff1a\u5148\u5220\u9664\u7a0b\u5e8f\u53ca\u5176\u7f13\u5b58\u6587\u4ef6\u5939\uff08\u4f4d\u4e8e\/Users\/xxx\/Library\/Application Support\/Code\uff09\uff0c\u91cd\u65b0\u5b89\u88c5\u540e\u9879\u76ee\u5185\u6587\u4ef6\u8df3\u8f6c\u529f\u80fd\u5373\u53ef\u6062\u590d\u3002\u9488\u5bf9Python\u73af\u5883\u95ee\u9898\uff0c\u5efa\u8bae\u5148\u5b89\u88c5Python\uff0c\u901a\u8fc7Ctrl+Shift+P\u8c03\u51fa\u547d\u4ee4\u9762\u677f\u6267\u884c&quot;Python: Restart Language Server&quot;\u5e76\u9009\u62e9Python\u8def\u5f84\uff0c\u5373\u53ef\u5b9e\u73b0\u7b2c\u4e09\u65b9\u5305\u7684\u8df3\u8f6c\u529f\u80fd\uff0c\u672a\u5b89\u88c5\u7684\u5305\u4f1a\u88ab\u6807\u8bb0\u51fa\u6765\u3002_vscode \u70b9\u51fb\u6587\u4ef6\u5f15\u7528\u65e0\u6cd5\u8df3\u8f6c\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/42390.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-08T07:27:27+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/42390.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/42390.html\",\"name\":\"\u91cd\u65b0\u5b89\u88c5\u89e3\u51b3mac vscode\u70b9\u51fb\u4e0d\u80fd\u8df3\u8f6c\u95ee\u9898 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-06-08T07:27:27+00:00\",\"dateModified\":\"2025-06-08T07:27:27+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/42390.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/42390.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/42390.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u91cd\u65b0\u5b89\u88c5\u89e3\u51b3mac vscode\u70b9\u51fb\u4e0d\u80fd\u8df3\u8f6c\u95ee\u9898\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u91cd\u65b0\u5b89\u88c5\u89e3\u51b3mac vscode\u70b9\u51fb\u4e0d\u80fd\u8df3\u8f6c\u95ee\u9898 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/42390.html","og_locale":"zh_CN","og_type":"article","og_title":"\u91cd\u65b0\u5b89\u88c5\u89e3\u51b3mac vscode\u70b9\u51fb\u4e0d\u80fd\u8df3\u8f6c\u95ee\u9898 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u5f7b\u5e95\u5378\u8f7d\u5e76\u91cd\u65b0\u5b89\u88c5VSCode\u7684\u65b9\u6cd5\uff1a\u5148\u5220\u9664\u7a0b\u5e8f\u53ca\u5176\u7f13\u5b58\u6587\u4ef6\u5939\uff08\u4f4d\u4e8e\/Users\/xxx\/Library\/Application Support\/Code\uff09\uff0c\u91cd\u65b0\u5b89\u88c5\u540e\u9879\u76ee\u5185\u6587\u4ef6\u8df3\u8f6c\u529f\u80fd\u5373\u53ef\u6062\u590d\u3002\u9488\u5bf9Python\u73af\u5883\u95ee\u9898\uff0c\u5efa\u8bae\u5148\u5b89\u88c5Python\uff0c\u901a\u8fc7Ctrl+Shift+P\u8c03\u51fa\u547d\u4ee4\u9762\u677f\u6267\u884c&quot;Python: Restart Language Server&quot;\u5e76\u9009\u62e9Python\u8def\u5f84\uff0c\u5373\u53ef\u5b9e\u73b0\u7b2c\u4e09\u65b9\u5305\u7684\u8df3\u8f6c\u529f\u80fd\uff0c\u672a\u5b89\u88c5\u7684\u5305\u4f1a\u88ab\u6807\u8bb0\u51fa\u6765\u3002_vscode \u70b9\u51fb\u6587\u4ef6\u5f15\u7528\u65e0\u6cd5\u8df3\u8f6c","og_url":"https:\/\/www.wsisp.com\/helps\/42390.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-06-08T07:27:27+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/42390.html","url":"https:\/\/www.wsisp.com\/helps\/42390.html","name":"\u91cd\u65b0\u5b89\u88c5\u89e3\u51b3mac vscode\u70b9\u51fb\u4e0d\u80fd\u8df3\u8f6c\u95ee\u9898 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-06-08T07:27:27+00:00","dateModified":"2025-06-08T07:27:27+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/42390.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/42390.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/42390.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u91cd\u65b0\u5b89\u88c5\u89e3\u51b3mac vscode\u70b9\u51fb\u4e0d\u80fd\u8df3\u8f6c\u95ee\u9898"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/42390","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=42390"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/42390\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=42390"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=42390"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=42390"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=42390"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}