{"id":20676,"date":"2024-11-19T13:59:52","date_gmt":"2024-11-19T05:59:52","guid":{"rendered":"https:\/\/fwq.ai\/blog\/20676\/"},"modified":"2024-11-19T13:59:52","modified_gmt":"2024-11-19T05:59:52","slug":"sublime%e6%80%8e%e4%b9%88%e8%bf%90%e8%a1%8c%e7%a8%8b%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/20676\/","title":{"rendered":"sublime\u600e\u4e48\u8fd0\u884c\u7a0b\u5e8f"},"content":{"rendered":"<blockquote><p>\n  \u5728 sublime text \u4e2d\u8fd0\u884c\u7a0b\u5e8f\u7684\u65b9\u6cd5\u6709\u4ee5\u4e0b\u51e0\u79cd\uff1a\u4f7f\u7528\u952e\u76d8\u5feb\u6377\u952e\uff08windows\/linux\uff1actrl + b\uff0cmacos\uff1acmd + b\uff09\u3002\u4ece\u83dc\u5355\u680f\u9009\u62e9\u201c\u5de5\u5177\u201d&gt;\u201c\u6784\u5efa\u7cfb\u7edf\u201d&gt;\u201c\u9009\u62e9\u5f53\u524d\u6784\u5efa\u7cfb\u7edf\u201d\u3002\u6839\u636e\u6240\u9009\u7684\u6784\u5efa\u7cfb\u7edf\uff0c\u7a0b\u5e8f\u5c06\u5728 sublime text \u96c6\u6210\u7684\u7ec8\u7aef\u4e2d\u8fd0\u884c\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202404\/03\/2024040312151424189.jpg\" class=\"aligncenter\" title=\"sublime\u600e\u4e48\u8fd0\u884c\u7a0b\u5e8f\u63d2\u56fe\" alt=\"sublime\u600e\u4e48\u8fd0\u884c\u7a0b\u5e8f\u63d2\u56fe\" \/><\/p>\n<p><strong>Sublime Text \u4e2d\u8fd0\u884c\u7a0b\u5e8f<\/strong><\/p>\n<p><strong>\u5982\u4f55\u8fd0\u884c\u7a0b\u5e8f\uff1f<\/strong><\/p>\n<p>\u5728 Sublime Text \u4e2d\u8fd0\u884c\u7a0b\u5e8f\u6709\u51e0\u79cd\u65b9\u6cd5\uff1a<\/p>\n<p><strong>1. \u952e\u76d8\u5feb\u6377\u952e\uff1a<\/strong><\/p>\n<ul>\n<li>Windows\/Linux\uff1aCtrl + B<\/li>\n<li>MacOS\uff1aCmd + B<\/li>\n<\/ul>\n<p><strong>2. \u83dc\u5355\u680f\uff1a<\/strong><\/p>\n<ul>\n<li> <strong>\u5de5\u5177 (Tools)<\/strong> &gt; <strong>\u6784\u5efa\u7cfb\u7edf (Build System)<\/strong> &gt; <strong>\u9009\u4e2d\u5f53\u524d\u6784\u5efa\u7cfb\u7edf (Select Current Build System)<\/strong> <\/li>\n<\/ul>\n<p><strong>\u9009\u62e9\u6784\u5efa\u7cfb\u7edf\uff1a<\/strong><\/p>\n<p>Sublime Text \u9700\u8981\u77e5\u9053\u8981\u8fd0\u884c\u7684\u7a0b\u5e8f\u7c7b\u578b\u624d\u80fd\u6b63\u786e\u8fd0\u884c\u5b83\u3002\u60a8\u53ef\u4ee5\u4ece\u4e0b\u62c9\u5217\u8868\u4e2d\u9009\u62e9\u4e00\u4e2a\u6784\u5efa\u7cfb\u7edf\uff1a<\/p>\n<ul>\n<li> <strong>Python\uff1a<\/strong> Python \u7a0b\u5e8f<\/li>\n<li> <strong>Node.js\uff1a<\/strong> Node.js \u7a0b\u5e8f<\/li>\n<li> <strong>Java\uff1a<\/strong> Java \u7a0b\u5e8f<\/li>\n<\/ul>\n<p><strong>\u81ea\u5b9a\u4e49\u6784\u5efa\u7cfb\u7edf\uff1a<\/strong><\/p>\n<p>\u5982\u679c\u60a8\u4f7f\u7528\u7684\u7a0b\u5e8f\u7c7b\u578b\u4e0d\u5728\u5217\u8868\u4e2d\uff0c\u60a8\u53ef\u4ee5\u81ea\u5b9a\u4e49\u6784\u5efa\u7cfb\u7edf\u3002\u5728\u914d\u7f6e\u6587\u4ef6\uff08Preferences.-settings\uff09\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<pre>{\n  \"build_systems\": [\n    {\n      \"name\": \"My Custom Build System\",\n      \"command\": \"\/path\/to\/my_command\",\n      \"working_dir\": \"\/path\/to\/working_directory\"\n    }\n  ]\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5c06 \/path\/to\/my_command \u66ff\u6362\u4e3a\u8fd0\u884c\u7a0b\u5e8f\u7684\u547d\u4ee4\uff0c\u5c06 \/path\/to\/working_directory \u66ff\u6362\u4e3a\u7a0b\u5e8f\u7684\u8def\u5f84\u3002<\/p>\n<p><strong>\u8fd0\u884c\u7a0b\u5e8f\uff1a<\/strong><\/p>\n<p>\u9009\u62e9\u6784\u5efa\u7cfb\u7edf\u540e\uff0c\u6309\u952e\u76d8\u5feb\u6377\u952e\u6216\u8f6c\u5230\u83dc\u5355\u680f\u3002\u7a0b\u5e8f\u5c06\u5728 Sublime Text \u96c6\u6210\u7684\u7ec8\u7aef\u4e2d\u8fd0\u884c\u3002<\/p>\n<p><strong>\u5176\u4ed6\u9009\u9879\uff1a<\/strong><\/p>\n<ul>\n<li> <strong>\u63a7\u5236\u53f0\u8f93\u51fa\uff1a<\/strong> \u7ec8\u7aef\u8f93\u51fa\u5c06\u663e\u793a\u5728 Sublime Text \u5e95\u90e8\u7684\u63a7\u5236\u53f0\u4e2d\u3002<\/li>\n<li> <strong>\u5de5\u4f5c\u76ee\u5f55\uff1a<\/strong> \u60a8\u53ef\u4ee5\u5728\u6784\u5efa\u7cfb\u7edf\u4e2d\u6307\u5b9a\u5de5\u4f5c\u76ee\u5f55\uff0c\u8fd9\u662f\u7a0b\u5e8f\u8fd0\u884c\u7684\u76ee\u5f55\u3002<\/li>\n<li> <strong>\u73af\u5883\u53d8\u91cf\uff1a<\/strong> \u60a8\u53ef\u4ee5\u5728\u6784\u5efa\u7cfb\u7edf\u4e2d\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u4f8b\u5982 PATH \u6216 PYTHONPATH\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u8fd0\u884c\u7a0b\u5e8f\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>\u5728 sublime text \u4e2d\u8fd0\u884c\u7a0b\u5e8f\u7684\u65b9\u6cd5\u6709\u4ee5\u4e0b\u51e0\u79cd\uff1a\u4f7f\u7528\u952e\u76d8\u5feb\u6377\u952e\uff08windows\/linux\uff1actrl + b\uff0cmacos\uff1acmd + b\uff09\u3002\u4ece\u83dc\u5355\u680f\u9009\u62e9\u201c\u5de5\u5177\u201d&gt;\u201c\u6784\u5efa\u7cfb\u7edf\u201d&gt;\u201c\u9009\u62e9\u5f53\u524d\u6784\u5efa\u7cfb\u7edf\u201d\u3002\u6839\u636e\u6240\u9009\u7684\u6784\u5efa\u7cfb\u7edf\uff0c\u7a0b\u5e8f\u5c06\u5728 sublime text \u96c6\u6210\u7684\u7ec8\u7aef\u4e2d\u8fd0\u884c\u3002 Sublime Text \u4e2d\u8fd0\u884c\u7a0b\u5e8f \u5982\u4f55\u8fd0\u884c\u7a0b\u5e8f\uff1f \u5728 Sublime Text \u4e2d\u8fd0\u884c\u7a0b\u5e8f\u6709\u51e0\u79cd\u65b9\u6cd5\uff1a 1. \u952e\u76d8\u5feb\u6377\u952e\uff1a Windows\/Linux\uff1aCtrl + B MacOS\uff1aCmd + B 2. \u83dc\u5355\u680f\uff1a \u5de5\u5177 (Tools) &gt; \u6784\u5efa\u7cfb\u7edf (Build System) &gt; \u9009\u4e2d\u5f53\u524d\u6784\u5efa\u7cfb\u7edf (Select Current Build System) \u9009\u62e9\u6784\u5efa\u7cfb\u7edf\uff1a Sublime Text \u9700\u8981\u77e5\u9053\u8981\u8fd0\u884c\u7684\u7a0b\u5e8f\u7c7b\u578b\u624d\u80fd\u6b63\u786e\u8fd0\u884c\u5b83\u3002\u60a8\u53ef\u4ee5\u4ece\u4e0b\u62c9\u5217\u8868\u4e2d\u9009\u62e9\u4e00\u4e2a\u6784\u5efa\u7cfb\u7edf\uff1a Python\uff1a Python \u7a0b\u5e8f Node.js\uff1a Node.js \u7a0b\u5e8f Java\uff1a Java \u7a0b\u5e8f \u81ea\u5b9a\u4e49\u6784\u5efa\u7cfb\u7edf\uff1a [&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-20676","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20676","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=20676"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20676\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=20676"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=20676"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=20676"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}