{"id":21423,"date":"2024-11-19T11:27:06","date_gmt":"2024-11-19T03:27:06","guid":{"rendered":"https:\/\/fwq.ai\/blog\/21423\/"},"modified":"2024-11-19T11:27:06","modified_gmt":"2024-11-19T03:27:06","slug":"vscode%e6%80%8e%e4%b9%88%e5%90%8c%e6%97%b6%e7%bc%96%e8%be%91%e5%a4%9a%e8%a1%8c","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/21423\/","title":{"rendered":"vscode\u600e\u4e48\u540c\u65f6\u7f16\u8f91\u591a\u884c"},"content":{"rendered":"<blockquote><p>\n  vs code\u63d0\u4f9b\u4e86\u591a\u79cd\u540c\u65f6\u7f16\u8f91\u591a\u884c\u7684\u529f\u80fd\uff0c\u5305\u62ec\uff1a\u77e9\u5f62\u9009\u62e9\uff1a\u7ed8\u5236\u77e9\u5f62\u9009\u62e9\u9700\u8981\u7f16\u8f91\u7684\u533a\u57df\u3002\u591a\u9009\u5149\u6807\uff1a\u6309\u4f4f alt\/option \u952e\u7684\u540c\u65f6\u4f7f\u7528\u65b9\u5411\u952e\u6216\u9f20\u6807\u9009\u62e9\u8981\u7f16\u8f91\u7684\u884c\u3002\u7f16\u8f91\u4e2d\u7684\u67e5\u627e\u548c\u66ff\u6362\uff1a\u5728\u201c\u67e5\u627e\u201d\u9762\u677f\u4e2d\u8f93\u5165\u8981\u67e5\u627e\u548c\u66ff\u6362\u7684\u6587\u672c\uff0c\u9009\u4e2d\u201c\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u201d\u5e76\u9009\u62e9\u201c\u9009\u5b9a\u7684\u591a\u4e2a\u5149\u6807\u201d\u8303\u56f4\u3002\u5757\u9009\u62e9\u6a21\u5f0f\uff1a\u6309\u4f4f alt\/option \u952e\u5e76\u5355\u51fb\u8981\u7f16\u8f91\u7684\u533a\u57df\u4ee5\u9009\u62e9\u4ee3\u7801\u5757\u3002\u6269\u5c55\uff1a\u5b89\u88c5\u6269\u5c55\u7a0b\u5e8f\uff0c\u5982\u201cmulti-cursor\u201d\uff0c\u4ee5\u589e\u5f3a\u591a\u884c\u7f16\u8f91\u529f\u80fd\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202405\/27\/2024052716212025166.jpg\" class=\"aligncenter\" title=\"vscode\u600e\u4e48\u540c\u65f6\u7f16\u8f91\u591a\u884c\u63d2\u56fe\" alt=\"vscode\u600e\u4e48\u540c\u65f6\u7f16\u8f91\u591a\u884c\u63d2\u56fe\" \/><\/p>\n<p><strong>VS Code\u4e2d\u540c\u65f6\u7f16\u8f91\u591a\u884c<\/strong><\/p>\n<p>\u5728Visual Studio Code\uff08VS Code\uff09\u4e2d\uff0c\u6709\u51e0\u79cd\u65b9\u6cd5\u53ef\u4ee5\u540c\u65f6\u7f16\u8f91\u591a\u884c\uff1a<\/p>\n<p><strong>1. \u77e9\u5f62\u9009\u62e9<\/strong><\/p>\n<ul>\n<li>\u6309\u4f4f Shift + Alt\uff08Windows\uff09\u6216 Shift + Option\uff08Mac\uff09\uff0c\u7136\u540e\u4f7f\u7528\u9f20\u6807\u5728\u8981\u7f16\u8f91\u7684\u533a\u57df\u5468\u56f4\u7ed8\u5236\u4e00\u4e2a\u77e9\u5f62\u3002<\/li>\n<li>\u8fd9\u662f\u540c\u65f6\u7f16\u8f91\u591a\u4e2a\u8fde\u7eed\u884c\u6700\u7b80\u5355\u7684\u65b9\u6cd5\u3002<\/li>\n<\/ul>\n<p><strong>2. \u591a\u9009\u5149\u6807<\/strong><\/p>\n<ul>\n<li>\u5c06\u5149\u6807\u653e\u5728\u8981\u7f16\u8f91\u7684\u7b2c\u4e00\u884c\uff0c\u6309\u4f4f Alt\uff08Windows\uff09\u6216 Option\uff08Mac\uff09\u952e\uff0c\u7136\u540e\u4f7f\u7528\u65b9\u5411\u952e\u6216\u9f20\u6807\u9009\u62e9\u5176\u4ed6\u8981\u7f16\u8f91\u7684\u884c\u3002<\/li>\n<li>\u9009\u62e9\u540e\uff0c\u60a8\u53ef\u4ee5\u5bf9\u6240\u6709\u9009\u5b9a\u7684\u884c\u6267\u884c\u76f8\u540c\u7684\u7f16\u8f91\u64cd\u4f5c\u3002<\/li>\n<\/ul>\n<p><strong>3. \u7f16\u8f91\u4e2d\u7684\u67e5\u627e\u548c\u66ff\u6362<\/strong><\/p>\n<ul>\n<li>\u6309 Ctrl + F\uff08Windows\uff09\u6216 Cmd + F\uff08Mac\uff09\u6253\u5f00\u201c\u67e5\u627e\u201d\u9762\u677f\u3002<\/li>\n<li>\u5728\u201c\u67e5\u627e\u201d\u5b57\u6bb5\u4e2d\u8f93\u5165\u8981\u67e5\u627e\u7684\u6587\u672c\u3002<\/li>\n<li>\u5728\u201c\u66ff\u6362\u4e3a\u201d\u5b57\u6bb5\u4e2d\u8f93\u5165\u66ff\u6362\u6587\u672c\uff08\u53ef\u9009\uff09\u3002<\/li>\n<li>\u9009\u4e2d\u201c\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u201d\u590d\u9009\u6846\u3002<\/li>\n<li>\u6309 Alt + Enter\uff08Windows\uff09\u6216 Cmd + Enter\uff08Mac\uff09\u4ee5\u67e5\u627e\u5e76\u66ff\u6362\u6587\u672c\u3002<\/li>\n<li>\u786e\u4fdd\u5728\u201c\u8303\u56f4\u201d\u5b57\u6bb5\u4e2d\u9009\u62e9\u201c\u9009\u5b9a\u7684\u591a\u4e2a\u5149\u6807\u201d\uff0c\u4ee5\u4fbf\u540c\u65f6\u7f16\u8f91\u6240\u6709\u5339\u914d\u7684\u884c\u3002<\/li>\n<\/ul>\n<p><strong>4. \u5757\u9009\u62e9\u6a21\u5f0f<\/strong><\/p>\n<ul>\n<li>\u6309\u4f4f Alt\uff08Windows\uff09\u6216 Option\uff08Mac\uff09\u952e\uff0c\u7136\u540e\u5728\u8981\u7f16\u8f91\u7684\u533a\u57df\u5185\u5355\u51fb\u9f20\u6807\u3002<\/li>\n<li>\u8fd9\u662f\u9009\u62e9\u548c\u7f16\u8f91\u4ee3\u7801\u5757\u6700\u6709\u6548\u7684\u65b9\u6cd5\uff0c\u4f8b\u5982\u51fd\u6570\u6216\u4ee3\u7801\u6bb5\u3002<\/li>\n<\/ul>\n<p><strong>5. \u6269\u5c55<\/strong><\/p>\n<ul>\n<li>\u60a8\u53ef\u4ee5\u5b89\u88c5\u6269\u5c55\u7a0b\u5e8f\u6765\u589e\u5f3aVS Code\u7684\u591a\u884c\u7f16\u8f91\u529f\u80fd\u3002\u4f8b\u5982\uff0c\u201cMulti-Cursor\u201d\u6269\u5c55\u7a0b\u5e8f\u5141\u8bb8\u60a8\u8f7b\u677e\u6dfb\u52a0\u548c\u79fb\u52a8\u591a\u4e2a\u5149\u6807\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u540c\u65f6\u7f16\u8f91\u591a\u884c\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>vs code\u63d0\u4f9b\u4e86\u591a\u79cd\u540c\u65f6\u7f16\u8f91\u591a\u884c\u7684\u529f\u80fd\uff0c\u5305\u62ec\uff1a\u77e9\u5f62\u9009\u62e9\uff1a\u7ed8\u5236\u77e9\u5f62\u9009\u62e9\u9700\u8981\u7f16\u8f91\u7684\u533a\u57df\u3002\u591a\u9009\u5149\u6807\uff1a\u6309\u4f4f alt\/option \u952e\u7684\u540c\u65f6\u4f7f\u7528\u65b9\u5411\u952e\u6216\u9f20\u6807\u9009\u62e9\u8981\u7f16\u8f91\u7684\u884c\u3002\u7f16\u8f91\u4e2d\u7684\u67e5\u627e\u548c\u66ff\u6362\uff1a\u5728\u201c\u67e5\u627e\u201d\u9762\u677f\u4e2d\u8f93\u5165\u8981\u67e5\u627e\u548c\u66ff\u6362\u7684\u6587\u672c\uff0c\u9009\u4e2d\u201c\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u201d\u5e76\u9009\u62e9\u201c\u9009\u5b9a\u7684\u591a\u4e2a\u5149\u6807\u201d\u8303\u56f4\u3002\u5757\u9009\u62e9\u6a21\u5f0f\uff1a\u6309\u4f4f alt\/option \u952e\u5e76\u5355\u51fb\u8981\u7f16\u8f91\u7684\u533a\u57df\u4ee5\u9009\u62e9\u4ee3\u7801\u5757\u3002\u6269\u5c55\uff1a\u5b89\u88c5\u6269\u5c55\u7a0b\u5e8f\uff0c\u5982\u201cmulti-cursor\u201d\uff0c\u4ee5\u589e\u5f3a\u591a\u884c\u7f16\u8f91\u529f\u80fd\u3002 VS Code\u4e2d\u540c\u65f6\u7f16\u8f91\u591a\u884c \u5728Visual Studio Code\uff08VS Code\uff09\u4e2d\uff0c\u6709\u51e0\u79cd\u65b9\u6cd5\u53ef\u4ee5\u540c\u65f6\u7f16\u8f91\u591a\u884c\uff1a 1. \u77e9\u5f62\u9009\u62e9 \u6309\u4f4f Shift + Alt\uff08Windows\uff09\u6216 Shift + Option\uff08Mac\uff09\uff0c\u7136\u540e\u4f7f\u7528\u9f20\u6807\u5728\u8981\u7f16\u8f91\u7684\u533a\u57df\u5468\u56f4\u7ed8\u5236\u4e00\u4e2a\u77e9\u5f62\u3002 \u8fd9\u662f\u540c\u65f6\u7f16\u8f91\u591a\u4e2a\u8fde\u7eed\u884c\u6700\u7b80\u5355\u7684\u65b9\u6cd5\u3002 2. \u591a\u9009\u5149\u6807 \u5c06\u5149\u6807\u653e\u5728\u8981\u7f16\u8f91\u7684\u7b2c\u4e00\u884c\uff0c\u6309\u4f4f Alt\uff08Windows\uff09\u6216 Option\uff08Mac\uff09\u952e\uff0c\u7136\u540e\u4f7f\u7528\u65b9\u5411\u952e\u6216\u9f20\u6807\u9009\u62e9\u5176\u4ed6\u8981\u7f16\u8f91\u7684\u884c\u3002 \u9009\u62e9\u540e\uff0c\u60a8\u53ef\u4ee5\u5bf9\u6240\u6709\u9009\u5b9a\u7684\u884c\u6267\u884c\u76f8\u540c\u7684\u7f16\u8f91\u64cd\u4f5c\u3002 3. \u7f16\u8f91\u4e2d\u7684\u67e5\u627e\u548c\u66ff\u6362 \u6309 Ctrl + F\uff08Windows\uff09\u6216 Cmd + F\uff08Mac\uff09\u6253\u5f00\u201c\u67e5\u627e\u201d\u9762\u677f\u3002 \u5728\u201c\u67e5\u627e\u201d\u5b57\u6bb5\u4e2d\u8f93\u5165\u8981\u67e5\u627e\u7684\u6587\u672c\u3002 \u5728\u201c\u66ff\u6362\u4e3a\u201d\u5b57\u6bb5\u4e2d\u8f93\u5165\u66ff\u6362\u6587\u672c\uff08\u53ef\u9009\uff09\u3002 \u9009\u4e2d\u201c\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u201d\u590d\u9009\u6846\u3002 \u6309 Alt + Enter\uff08Windows\uff09\u6216 Cmd + Enter\uff08Mac\uff09\u4ee5\u67e5\u627e\u5e76\u66ff\u6362\u6587\u672c\u3002 \u786e\u4fdd\u5728\u201c\u8303\u56f4\u201d\u5b57\u6bb5\u4e2d\u9009\u62e9\u201c\u9009\u5b9a\u7684\u591a\u4e2a\u5149\u6807\u201d\uff0c\u4ee5\u4fbf\u540c\u65f6\u7f16\u8f91\u6240\u6709\u5339\u914d\u7684\u884c\u3002 4. \u5757\u9009\u62e9\u6a21\u5f0f \u6309\u4f4f Alt\uff08Windows\uff09\u6216 Option\uff08Mac\uff09\u952e\uff0c\u7136\u540e\u5728\u8981\u7f16\u8f91\u7684\u533a\u57df\u5185\u5355\u51fb\u9f20\u6807\u3002 \u8fd9\u662f\u9009\u62e9\u548c\u7f16\u8f91\u4ee3\u7801\u5757\u6700\u6709\u6548\u7684\u65b9\u6cd5\uff0c\u4f8b\u5982\u51fd\u6570\u6216\u4ee3\u7801\u6bb5\u3002 5. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-21423","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21423","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=21423"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21423\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=21423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=21423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=21423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}