{"id":20630,"date":"2024-11-19T14:00:05","date_gmt":"2024-11-19T06:00:05","guid":{"rendered":"https:\/\/fwq.ai\/blog\/20630\/"},"modified":"2024-11-19T14:00:05","modified_gmt":"2024-11-19T06:00:05","slug":"sublime%e6%80%8e%e4%b9%88%e8%ae%be%e7%bd%ae%e7%bc%96%e7%a0%81%e6%a0%bc%e5%bc%8f","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/20630\/","title":{"rendered":"sublime\u600e\u4e48\u8bbe\u7f6e\u7f16\u7801\u683c\u5f0f"},"content":{"rendered":"<blockquote><p>\n  \u8981\u8bbe\u7f6esublime text\u4e2d\u7684\u7f16\u7801\u683c\u5f0f\uff0c\u8bf7\u9075\u5faa\u4ee5\u4e0b\u6b65\u9aa4\uff1a\u6253\u5f00\u9996\u9009\u9879\uff0c\u5728&#8221;code_settings&#8221;\u4e2d\u627e\u5230&#8221;encoding&#8221;\u9009\u9879\u3002\u6dfb\u52a0\u6216\u4fee\u6539\u7f16\u7801\uff1a\u6dfb\u52a0\uff1a\u5728&#8221;encoding&#8221;\u540e\u6dfb\u52a0\u4e00\u884c\uff0c\u5982\uff1a&#8221;encoding&#8221;: &#8220;utf-8&#8243;\u3002\u4fee\u6539\uff1a\u66f4\u6539\u73b0\u6709\u7f16\u7801\u7684\u503c\uff0c\u5982\uff1a&#8221;encoding&#8221;: &#8220;iso-8859-1&#8243;\u3002\u4fdd\u5b58\u9996\u9009\u9879\u6587\u4ef6\u3002\u5728&#8221;\u67e5\u770b&#8221;\u83dc\u5355\u4e2d\u542f\u7528\u72b6\u6001\u680f\uff0c\u4ee5\u9a8c\u8bc1\u7f16\u7801\u5df2\u6b63\u786e\u8bbe\u7f6e\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202404\/03\/2024040309331581489.jpg\" class=\"aligncenter\" title=\"sublime\u600e\u4e48\u8bbe\u7f6e\u7f16\u7801\u683c\u5f0f\u63d2\u56fe\" alt=\"sublime\u600e\u4e48\u8bbe\u7f6e\u7f16\u7801\u683c\u5f0f\u63d2\u56fe\" \/><\/p>\n<p><strong>Sublime Text\u4e2d\u8bbe\u7f6e\u7f16\u7801\u683c\u5f0f<\/strong><\/p>\n<p>Sublime Text\u662f\u4e00\u4e2a\u6d41\u884c\u7684\u6587\u672c\u7f16\u8f91\u5668\uff0c\u5b83\u5141\u8bb8\u7528\u6237\u81ea\u5b9a\u4e49\u7f16\u7801\u683c\u5f0f\u3002\u8981\u8bbe\u7f6e\u7f16\u7801\u683c\u5f0f\uff0c\u8bf7\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a<\/p>\n<p><strong>1. \u6253\u5f00\u9996\u9009\u9879<\/strong><\/p>\n<ul>\n<li>Windows\uff1a\u6309\u201cCtrl + ,\u201d<\/li>\n<li>Mac\uff1a\u6309\u201cCommand + ,\u201d<\/li>\n<li>Linux\uff1a\u6309\u201cCtrl + Shift + P\u201d\u5e76\u952e\u5165\u201cPreferences: Open Settings\u201d<\/li>\n<\/ul>\n<p><strong>2. \u627e\u5230\u7f16\u7801\u8bbe\u7f6e<\/strong><\/p>\n<p>\u5728\u9996\u9009\u9879\u6587\u4ef6\u4e2d\uff0c\u627e\u5230\u201ccode_settings\u201d\u90e8\u5206\u3002<\/p>\n<p><strong>3. \u6dfb\u52a0\u6216\u4fee\u6539\u7f16\u7801<\/strong><\/p>\n<p>\u5728\u201ccode_settings\u201d\u90e8\u5206\u4e2d\uff0c\u627e\u5230\u201cencoding\u201d\u9009\u9879\u3002\u8fd9\u5c06\u663e\u793a\u5f53\u524d\u4f7f\u7528\u7684\u7f16\u7801\u3002\u8981\u6dfb\u52a0\u6216\u4fee\u6539\u7f16\u7801\uff0c\u8bf7\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a<\/p>\n<ul>\n<li> <strong>\u6dfb\u52a0\u65b0\u7f16\u7801\uff1a<\/strong>\u5728\u201cencoding\u201d\u9009\u9879\u540e\u6dfb\u52a0\u65b0\u7684\u4e00\u884c\uff0c\u4f8b\u5982\uff1a\u201c&#8221;encoding&#8221;: &#8220;utf-8&#8243;\u201d<\/li>\n<li> <strong>\u4fee\u6539\u73b0\u6709\u7f16\u7801\uff1a<\/strong>\u627e\u5230\u73b0\u6709\u7f16\u7801\u5e76\u5c06\u5176\u503c\u66f4\u6539\u4e3a\u60a8\u60f3\u8981\u7684\u7f16\u7801\uff0c\u4f8b\u5982\uff1a\u201c&#8221;encoding&#8221;: &#8220;iso-8859-1&#8243;\u201d<\/li>\n<\/ul>\n<p><strong>4. \u4fdd\u5b58\u66f4\u6539<\/strong><\/p>\n<p>\u4fdd\u5b58\u9996\u9009\u9879\u6587\u4ef6\u4ee5\u5e94\u7528\u66f4\u6539\u3002<\/p>\n<p><strong>5. \u9a8c\u8bc1\u7f16\u7801<\/strong><\/p>\n<p>\u8981\u9a8c\u8bc1\u7f16\u7801\u662f\u5426\u5df2\u8bbe\u7f6e\u6b63\u786e\uff0c\u8bf7\u6253\u5f00\u4e00\u4e2a\u6587\u4ef6\u5e76\u68c0\u67e5\u5176\u7f16\u7801\u3002\u5728Sublime Text\u4e2d\uff0c\u60a8\u53ef\u4ee5\u8f6c\u5230\u201c\u67e5\u770b\u201d&gt;\u201c\u663e\u793a\u72b6\u6001\u680f\u201d\uff0c\u4ee5\u5728\u72b6\u6001\u680f\u4e2d\u67e5\u770b\u6587\u4ef6\u7684\u7f16\u7801\u3002<\/p>\n<p><strong>\u6ce8\u610f\u4e8b\u9879\uff1a<\/strong><\/p>\n<ul>\n<li>\u7f16\u7801\u66f4\u6539\u5c06\u5e94\u7528\u4e8e\u65b0\u6253\u5f00\u7684\u6240\u6709\u6587\u4ef6\u3002<\/li>\n<li>\u5982\u679c\u60a8\u9700\u8981\u4e3a\u7279\u5b9a\u6587\u4ef6\u8bbe\u7f6e\u4e0d\u540c\u7684\u7f16\u7801\uff0c\u53ef\u4ee5\u5728\u6587\u4ef6\u4fdd\u5b58\u65f6\u9009\u62e9\u7f16\u7801\u3002<\/li>\n<li>Sublime Text\u652f\u6301\u5e7f\u6cdb\u7684\u7f16\u7801\u683c\u5f0f\uff0c\u5305\u62ecUTF-8\u3001UTF-16\u3001ISO-8859-1\u3001GB2312\u7b49\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u8bbe\u7f6e\u7f16\u7801\u683c\u5f0f\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>\u8981\u8bbe\u7f6esublime text\u4e2d\u7684\u7f16\u7801\u683c\u5f0f\uff0c\u8bf7\u9075\u5faa\u4ee5\u4e0b\u6b65\u9aa4\uff1a\u6253\u5f00\u9996\u9009\u9879\uff0c\u5728&#8221;code_settings&#8221;\u4e2d\u627e\u5230&#8221;encoding&#8221;\u9009\u9879\u3002\u6dfb\u52a0\u6216\u4fee\u6539\u7f16\u7801\uff1a\u6dfb\u52a0\uff1a\u5728&#8221;encoding&#8221;\u540e\u6dfb\u52a0\u4e00\u884c\uff0c\u5982\uff1a&#8221;encoding&#8221;: &#8220;utf-8&#8243;\u3002\u4fee\u6539\uff1a\u66f4\u6539\u73b0\u6709\u7f16\u7801\u7684\u503c\uff0c\u5982\uff1a&#8221;encoding&#8221;: &#8220;iso-8859-1&#8243;\u3002\u4fdd\u5b58\u9996\u9009\u9879\u6587\u4ef6\u3002\u5728&#8221;\u67e5\u770b&#8221;\u83dc\u5355\u4e2d\u542f\u7528\u72b6\u6001\u680f\uff0c\u4ee5\u9a8c\u8bc1\u7f16\u7801\u5df2\u6b63\u786e\u8bbe\u7f6e\u3002 Sublime Text\u4e2d\u8bbe\u7f6e\u7f16\u7801\u683c\u5f0f Sublime Text\u662f\u4e00\u4e2a\u6d41\u884c\u7684\u6587\u672c\u7f16\u8f91\u5668\uff0c\u5b83\u5141\u8bb8\u7528\u6237\u81ea\u5b9a\u4e49\u7f16\u7801\u683c\u5f0f\u3002\u8981\u8bbe\u7f6e\u7f16\u7801\u683c\u5f0f\uff0c\u8bf7\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a 1. \u6253\u5f00\u9996\u9009\u9879 Windows\uff1a\u6309\u201cCtrl + ,\u201d Mac\uff1a\u6309\u201cCommand + ,\u201d Linux\uff1a\u6309\u201cCtrl + Shift + P\u201d\u5e76\u952e\u5165\u201cPreferences: Open Settings\u201d 2. \u627e\u5230\u7f16\u7801\u8bbe\u7f6e \u5728\u9996\u9009\u9879\u6587\u4ef6\u4e2d\uff0c\u627e\u5230\u201ccode_settings\u201d\u90e8\u5206\u3002 3. \u6dfb\u52a0\u6216\u4fee\u6539\u7f16\u7801 \u5728\u201ccode_settings\u201d\u90e8\u5206\u4e2d\uff0c\u627e\u5230\u201cencoding\u201d\u9009\u9879\u3002\u8fd9\u5c06\u663e\u793a\u5f53\u524d\u4f7f\u7528\u7684\u7f16\u7801\u3002\u8981\u6dfb\u52a0\u6216\u4fee\u6539\u7f16\u7801\uff0c\u8bf7\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a \u6dfb\u52a0\u65b0\u7f16\u7801\uff1a\u5728\u201cencoding\u201d\u9009\u9879\u540e\u6dfb\u52a0\u65b0\u7684\u4e00\u884c\uff0c\u4f8b\u5982\uff1a\u201c&#8221;encoding&#8221;: &#8220;utf-8&#8243;\u201d \u4fee\u6539\u73b0\u6709\u7f16\u7801\uff1a\u627e\u5230\u73b0\u6709\u7f16\u7801\u5e76\u5c06\u5176\u503c\u66f4\u6539\u4e3a\u60a8\u60f3\u8981\u7684\u7f16\u7801\uff0c\u4f8b\u5982\uff1a\u201c&#8221;encoding&#8221;: &#8220;iso-8859-1&#8243;\u201d 4. \u4fdd\u5b58\u66f4\u6539 \u4fdd\u5b58\u9996\u9009\u9879\u6587\u4ef6\u4ee5\u5e94\u7528\u66f4\u6539\u3002 5. \u9a8c\u8bc1\u7f16\u7801 \u8981\u9a8c\u8bc1\u7f16\u7801\u662f\u5426\u5df2\u8bbe\u7f6e\u6b63\u786e\uff0c\u8bf7\u6253\u5f00\u4e00\u4e2a\u6587\u4ef6\u5e76\u68c0\u67e5\u5176\u7f16\u7801\u3002\u5728Sublime Text\u4e2d\uff0c\u60a8\u53ef\u4ee5\u8f6c\u5230\u201c\u67e5\u770b\u201d&gt;\u201c\u663e\u793a\u72b6\u6001\u680f\u201d\uff0c\u4ee5\u5728\u72b6\u6001\u680f\u4e2d\u67e5\u770b\u6587\u4ef6\u7684\u7f16\u7801\u3002 \u6ce8\u610f\u4e8b\u9879\uff1a \u7f16\u7801\u66f4\u6539\u5c06\u5e94\u7528\u4e8e\u65b0\u6253\u5f00\u7684\u6240\u6709\u6587\u4ef6\u3002 \u5982\u679c\u60a8\u9700\u8981\u4e3a\u7279\u5b9a\u6587\u4ef6\u8bbe\u7f6e\u4e0d\u540c\u7684\u7f16\u7801\uff0c\u53ef\u4ee5\u5728\u6587\u4ef6\u4fdd\u5b58\u65f6\u9009\u62e9\u7f16\u7801\u3002 Sublime Text\u652f\u6301\u5e7f\u6cdb\u7684\u7f16\u7801\u683c\u5f0f\uff0c\u5305\u62ecUTF-8\u3001UTF-16\u3001ISO-8859-1\u3001GB2312\u7b49\u3002 \u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u8bbe\u7f6e\u7f16\u7801\u683c\u5f0f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/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-20630","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20630","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=20630"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20630\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=20630"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=20630"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=20630"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}