{"id":20733,"date":"2024-11-19T10:34:11","date_gmt":"2024-11-19T02:34:11","guid":{"rendered":"https:\/\/fwq.ai\/blog\/20733\/"},"modified":"2024-11-19T10:34:11","modified_gmt":"2024-11-19T02:34:11","slug":"sublime%e5%a6%82%e4%bd%95%e8%bf%90%e8%a1%8cc%e8%af%ad%e8%a8%80","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/20733\/","title":{"rendered":"sublime\u5982\u4f55\u8fd0\u884cc\u8bed\u8a00"},"content":{"rendered":"<blockquote><p>\n  sublime text \u53ef\u901a\u8fc7\u5b89\u88c5 c++ builder \u63d2\u4ef6\u8fd0\u884c c \u8bed\u8a00\u4ee3\u7801\uff1a\u5b89\u88c5\u7f16\u8bd1\u63d2\u4ef6\uff1b\u914d\u7f6e\u7f16\u8bd1\u8bbe\u7f6e\uff0c\u5305\u62ec\u7f16\u8bd1\u547d\u4ee4\u548c\u8bbe\u7f6e\uff1b\u9009\u62e9\u6784\u5efa\u7cfb\u7edf\u4e3a\u201c\u8fd0\u884c\u201d\uff1b\u8fd0\u884c\u4ee3\u7801\uff0c\u6210\u529f\u7f16\u8bd1\u540e\uff0c\u53ef\u6267\u884c\u6587\u4ef6\u5c06\u751f\u6210\u5728\u6e90\u6587\u4ef6\u6240\u5728\u76ee\u5f55\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202404\/03\/2024040316151538701.jpg\" class=\"aligncenter\" title=\"sublime\u5982\u4f55\u8fd0\u884cc\u8bed\u8a00\u63d2\u56fe\" alt=\"sublime\u5982\u4f55\u8fd0\u884cc\u8bed\u8a00\u63d2\u56fe\" \/><\/p>\n<p><strong>Sublime\u5982\u4f55\u8fd0\u884cC\u8bed\u8a00<\/strong><\/p>\n<p>Sublime Text\u662f\u4e00\u6b3e\u6587\u672c\u7f16\u8f91\u5668\uff0c\u53ef\u4ee5\u901a\u8fc7\u5b89\u88c5\u63d2\u4ef6\u6765\u8fd0\u884cC\u8bed\u8a00\u4ee3\u7801\u3002\u4e0b\u9762\u662f\u5177\u4f53\u6b65\u9aa4\uff1a<\/p>\n<p><strong>1. \u5b89\u88c5\u7f16\u8bd1\u63d2\u4ef6<\/strong><\/p>\n<ul>\n<li>\u6253\u5f00Sublime Text\uff0c\u9009\u62e9\u201cPreferences\u201d -&gt; \u201cPackage Control\u201d\u3002<\/li>\n<li>\u5728\u641c\u7d22\u680f\u4e2d\u8f93\u5165\u201cC++ Builder\u201d\u5e76\u6309\u201cInstall Package\u201d\u3002<\/li>\n<\/ul>\n<p><strong>2. \u914d\u7f6e\u7f16\u8bd1\u8bbe\u7f6e<\/strong><\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<ul>\n<li>\u9009\u62e9\u201cPreferences\u201d -&gt; \u201cSettings &#8211; User\u201d\u3002<\/li>\n<li>\u5728\u6253\u5f00\u7684\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/li>\n<\/ul>\n<pre>{\n  \"c_cpp_properties\": {\n    \"configuration\": {\n      \"intelliSenseMode\": \"clang-xcode\"\n    },\n    \"build_systems\": [\n      {\n        \"name\": \"Run\",\n        \"working_dir\": \"${file_dir}\",\n        \"command\": \"g++ -std=c++11 -Wall -o ${file_base_name} ${file_name}\",\n        \"selector\": \"source.c\"\n      }\n    ]\n  }\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>3. \u8fd0\u884c\u4ee3\u7801<\/strong><\/p>\n<ul>\n<li>\u5728Sublime Text\u4e2d\u6253\u5f00\u4e00\u4e2aC\u8bed\u8a00\u6e90\u6587\u4ef6\u3002<\/li>\n<li>\u9009\u62e9\u201cTools\u201d -&gt; \u201cBuild System\u201d -&gt; \u201cRun\u201d\u3002<\/li>\n<li>Sublime Text\u5c06\u7f16\u8bd1\u5e76\u8fd0\u884c\u4ee3\u7801\u3002<\/li>\n<\/ul>\n<p><strong>\u8be6\u7ec6\u6b65\u9aa4\uff1a<\/strong><\/p>\n<ol>\n<li> <strong>\u786e\u4fdd\u5df2\u5b89\u88c5g++\u7f16\u8bd1\u5668<\/strong>\uff1ag++\u7f16\u8bd1\u5668\u662f\u7528\u4e8e\u7f16\u8bd1C++\u4ee3\u7801\u7684\u547d\u4ee4\u884c\u5de5\u5177\u3002\u5982\u679c\u5c1a\u672a\u5b89\u88c5\uff0c\u8bf7\u4f7f\u7528\u7cfb\u7edf\u5305\u7ba1\u7406\u5668\u8fdb\u884c\u5b89\u88c5\u3002<\/li>\n<li> <strong>\u5b89\u88c5C++ Builder\u63d2\u4ef6<\/strong>\uff1a\u6b64\u63d2\u4ef6\u63d0\u4f9b\u4e86\u9488\u5bf9C++\u4ee3\u7801\u7684\u8bed\u6cd5\u9ad8\u4eae\u3001\u81ea\u52a8\u8865\u5168\u548c\u7f16\u8bd1\u652f\u6301\u3002<\/li>\n<li> <strong>\u914d\u7f6e\u7f16\u8bd1\u8bbe\u7f6e<\/strong>\uff1a\u5728\u201c\u7528\u6237\u8bbe\u7f6e\u201d\u6587\u4ef6\u4e2d\u6dfb\u52a0\u201cc_cpp_properties\u201d\u90e8\u5206\uff0c\u6307\u5b9a\u7f16\u8bd1\u547d\u4ee4\u548c\u8bbe\u7f6e\u3002<\/li>\n<li> <strong>\u9009\u62e9\u6784\u5efa\u7cfb\u7edf<\/strong>\uff1a\u5728\u201c\u6784\u5efa\u7cfb\u7edf\u201d\u83dc\u5355\u4e2d\uff0c\u9009\u62e9\u201c\u8fd0\u884c\u201d\u6784\u5efa\u7cfb\u7edf\u3002<\/li>\n<li> <strong>\u8fd0\u884c\u4ee3\u7801<\/strong>\uff1a\u4f7f\u7528\u201c\u6784\u5efa\u201d\u83dc\u5355\u6216\u952e\u76d8\u5feb\u6377\u952e\uff08\u4f8b\u5982\uff0c\u5728MacOS\u4e0a\u4e3aCommand+B\uff09\u8fd0\u884c\u4ee3\u7801\u3002<\/li>\n<li> <strong>\u7ed3\u679c<\/strong>\uff1a\u6210\u529f\u7f16\u8bd1\u540e\uff0c\u53ef\u6267\u884c\u6587\u4ef6\u5c06\u751f\u6210\u5728\u6e90\u6587\u4ef6\u6240\u5728\u7684\u76ee\u5f55\u4e2d\u3002<\/li>\n<\/ol>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5982\u4f55\u8fd0\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>sublime text \u53ef\u901a\u8fc7\u5b89\u88c5 c++ builder \u63d2\u4ef6\u8fd0\u884c c \u8bed\u8a00\u4ee3\u7801\uff1a\u5b89\u88c5\u7f16\u8bd1\u63d2\u4ef6\uff1b\u914d\u7f6e\u7f16\u8bd1\u8bbe\u7f6e\uff0c\u5305\u62ec\u7f16\u8bd1\u547d\u4ee4\u548c\u8bbe\u7f6e\uff1b\u9009\u62e9\u6784\u5efa\u7cfb\u7edf\u4e3a\u201c\u8fd0\u884c\u201d\uff1b\u8fd0\u884c\u4ee3\u7801\uff0c\u6210\u529f\u7f16\u8bd1\u540e\uff0c\u53ef\u6267\u884c\u6587\u4ef6\u5c06\u751f\u6210\u5728\u6e90\u6587\u4ef6\u6240\u5728\u76ee\u5f55\u3002 Sublime\u5982\u4f55\u8fd0\u884cC\u8bed\u8a00 Sublime Text\u662f\u4e00\u6b3e\u6587\u672c\u7f16\u8f91\u5668\uff0c\u53ef\u4ee5\u901a\u8fc7\u5b89\u88c5\u63d2\u4ef6\u6765\u8fd0\u884cC\u8bed\u8a00\u4ee3\u7801\u3002\u4e0b\u9762\u662f\u5177\u4f53\u6b65\u9aa4\uff1a 1. \u5b89\u88c5\u7f16\u8bd1\u63d2\u4ef6 \u6253\u5f00Sublime Text\uff0c\u9009\u62e9\u201cPreferences\u201d -&gt; \u201cPackage Control\u201d\u3002 \u5728\u641c\u7d22\u680f\u4e2d\u8f93\u5165\u201cC++ Builder\u201d\u5e76\u6309\u201cInstall Package\u201d\u3002 2. \u914d\u7f6e\u7f16\u8bd1\u8bbe\u7f6e \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b \u9009\u62e9\u201cPreferences\u201d -&gt; \u201cSettings &#8211; User\u201d\u3002 \u5728\u6253\u5f00\u7684\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\uff1a { &#8220;c_cpp_properties&#8221;: { &#8220;configuration&#8221;: { &#8220;intelliSenseMode&#8221;: &#8220;clang-xcode&#8221; }, &#8220;build_systems&#8221;: [ { &#8220;name&#8221;: &#8220;Run&#8221;, &#8220;working_dir&#8221;: &#8220;${file_dir}&#8221;, &#8220;command&#8221;: &#8220;g++ -std=c++11 -Wall -o ${file_base_name} ${file_name}&#8221;, &#8220;selector&#8221;: &#8220;source.c&#8221; } [&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-20733","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20733","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=20733"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20733\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=20733"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=20733"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=20733"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}