{"id":20788,"date":"2024-11-19T15:26:04","date_gmt":"2024-11-19T07:26:04","guid":{"rendered":"https:\/\/fwq.ai\/blog\/20788\/"},"modified":"2024-11-19T15:26:04","modified_gmt":"2024-11-19T07:26:04","slug":"phpstorm%e4%b8%ad%e6%96%87%e4%b9%b1%e7%a0%81%e6%80%8e%e4%b9%88%e8%a7%a3%e5%86%b3","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/20788\/","title":{"rendered":"phpstorm\u4e2d\u6587\u4e71\u7801\u600e\u4e48\u89e3\u51b3"},"content":{"rendered":"<blockquote><p>\n  \u4e3a\u4e86\u89e3\u51b3 phpstorm \u4e2d\u7684\u4e2d\u6587\u4e71\u7801\u95ee\u9898\uff0c\u9996\u5148\u8981\u68c0\u67e5\u6587\u4ef6\u7f16\u7801\u5e76\u786e\u4fdd\u4e3a &#8220;utf-8&#8243;\u3002\u5176\u6b21\uff0c\u53ef\u4ee5\u914d\u7f6e ide \u7f16\u7801\uff0c\u5728 &#8220;file encodings&#8221; \u9009\u9879\u5361\u4e2d\u9009\u62e9 &#8220;utf-8&#8243;\u3002\u7b2c\u4e09\uff0c\u53ef\u4ee5\u8c03\u6574\u5b57\u4f53\uff0c\u4f7f\u7528\u652f\u6301\u4e2d\u6587\u7684\u5b57\u4f53\u3002\u5982\u679c\u4e0a\u8ff0\u65b9\u6cd5\u5747\u65e0\u6548\uff0c\u5219\u9700\u8981\u5b89\u88c5 phpstorm \u7684\u4e2d\u6587\u8bed\u8a00\u5305\uff0c\u7136\u540e\u91cd\u65b0\u542f\u52a8 phpstorm\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202404\/07\/2024040722152022707.jpg\" class=\"aligncenter\" title=\"phpstorm\u4e2d\u6587\u4e71\u7801\u600e\u4e48\u89e3\u51b3\u63d2\u56fe\" alt=\"phpstorm\u4e2d\u6587\u4e71\u7801\u600e\u4e48\u89e3\u51b3\u63d2\u56fe\" \/><\/p>\n<p><strong>\u89e3\u51b3 PHPStorm \u4e2d\u6587\u4e71\u7801\u95ee\u9898<\/strong><\/p>\n<p><strong>1. \u67e5\u770b\u6587\u4ef6\u7f16\u7801<\/strong><\/p>\n<p>\u9996\u5148\uff0c\u6253\u5f00\u6709\u4e71\u7801\u7684\u6587\u4ef6\uff0c\u53f3\u952e\u5355\u51fb\u5e76\u9009\u62e9 &#8220;Properties&#8221;\u3002\u5728 &#8220;General&#8221; \u9009\u9879\u5361\u4e2d\uff0c\u68c0\u67e5 &#8220;File Encoding&#8221; \u662f\u5426\u4e3a &#8220;UTF-8&#8243;\u3002\u5982\u679c\u4e0d\u662f\uff0c\u8bf7\u5c06\u5176\u66f4\u6539\u4e3a &#8220;UTF-8&#8243;\u3002<\/p>\n<p><strong>2. \u914d\u7f6e IDE \u7f16\u7801<\/strong><\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<p>\u5982\u679c\u6587\u4ef6\u7f16\u7801\u6b63\u786e\uff0c\u5219\u95ee\u9898\u53ef\u80fd\u51fa\u5728 IDE \u672c\u8eab\u3002\u5728 PHPStorm \u4e2d\uff0c\u8f6c\u5230 &#8220;File&#8221; &gt; &#8220;Settings&#8221;\u3002\u5728 &#8220;Editor&#8221; \u4e0b\u7684 &#8220;File Encodings&#8221; \u9009\u9879\u5361\u4e2d\uff0c\u786e\u4fdd\u9009\u4e2d &#8220;UTF-8&#8221; \u4f5c\u4e3a &#8220;Default encoding for all files&#8221; \u548c &#8220;Encoding for new files&#8221;\u3002<\/p>\n<p><strong>3. \u8c03\u6574\u5b57\u4f53<\/strong><\/p>\n<p>\u67d0\u4e9b\u5b57\u4f53\u53ef\u80fd\u4e0d\u5b8c\u5168\u652f\u6301\u4e2d\u6587\u5b57\u7b26\u3002\u5c1d\u8bd5\u4f7f\u7528\u652f\u6301\u4e2d\u6587\u7684\u5b57\u4f53\uff0c\u4f8b\u5982 &#8220;\u601d\u6e90\u9ed1\u4f53&#8221; \u6216 &#8220;Microsoft YaHei&#8221;\u3002\u5728 PHPStorm \u4e2d\uff0c\u8f6c\u5230 &#8220;File&#8221; &gt; &#8220;Settings&#8221; &gt; &#8220;Editor&#8221; &gt; &#8220;Font&#8221;\uff0c\u7136\u540e\u9009\u62e9\u6240\u9700\u7684\u5b57\u4f53\u3002<\/p>\n<p><strong>4. \u5b89\u88c5\u8bed\u8a00\u5305<\/strong><\/p>\n<p>\u5982\u679c\u4ee5\u4e0a\u65b9\u6cd5\u65e0\u6cd5\u89e3\u51b3\u95ee\u9898\uff0c\u5219\u53ef\u80fd\u662f\u7f3a\u5c11\u5fc5\u8981\u7684\u8bed\u8a00\u5305\u3002\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u5b89\u88c5 PHPStorm \u7684\u4e2d\u6587\u8bed\u8a00\u5305\uff1a<\/p>\n<ul>\n<li>\u5728 PHPStorm \u4e2d\uff0c\u8f6c\u5230 &#8220;Help&#8221; &gt; &#8220;Check for Updates&#8221;\u3002<\/li>\n<li>\u5728 &#8220;Updates&#8221; \u7a97\u53e3\u4e2d\uff0c\u9009\u4e2d &#8220;Plugins&#8221; \u9009\u9879\u5361\u3002<\/li>\n<li>\u641c\u7d22 &#8220;Chinese (Simplified)&#8221; \u8bed\u8a00\u5305\u5e76\u5c06\u5176\u5b89\u88c5\u3002<\/li>\n<\/ul>\n<p><strong>5. \u91cd\u65b0\u542f\u52a8 PHPStorm<\/strong><\/p>\n<p>\u5b8c\u6210\u4e0a\u8ff0\u6b65\u9aa4\u540e\uff0c\u91cd\u65b0\u542f\u52a8 PHPStorm \u4ee5\u4f7f\u66f4\u6539\u751f\u6548\u3002\u5982\u679c\u95ee\u9898\u4ecd\u7136\u5b58\u5728\uff0c\u8bf7\u5c1d\u8bd5\u4ee5\u4e0b\u5176\u4ed6\u65b9\u6cd5\uff1a<\/p>\n<ul>\n<li>\u5378\u8f7d\u5e76\u91cd\u65b0\u5b89\u88c5 PHPStorm\u3002<\/li>\n<li>\u8054\u7cfb PHPStorm \u652f\u6301\u56e2\u961f\u5bfb\u6c42\u5e2e\u52a9\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u4e2d\u6587\u4e71\u7801\u600e\u4e48\u89e3\u51b3\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>\u4e3a\u4e86\u89e3\u51b3 phpstorm \u4e2d\u7684\u4e2d\u6587\u4e71\u7801\u95ee\u9898\uff0c\u9996\u5148\u8981\u68c0\u67e5\u6587\u4ef6\u7f16\u7801\u5e76\u786e\u4fdd\u4e3a &#8220;utf-8&#8243;\u3002\u5176\u6b21\uff0c\u53ef\u4ee5\u914d\u7f6e ide \u7f16\u7801\uff0c\u5728 &#8220;file encodings&#8221; \u9009\u9879\u5361\u4e2d\u9009\u62e9 &#8220;utf-8&#8243;\u3002\u7b2c\u4e09\uff0c\u53ef\u4ee5\u8c03\u6574\u5b57\u4f53\uff0c\u4f7f\u7528\u652f\u6301\u4e2d\u6587\u7684\u5b57\u4f53\u3002\u5982\u679c\u4e0a\u8ff0\u65b9\u6cd5\u5747\u65e0\u6548\uff0c\u5219\u9700\u8981\u5b89\u88c5 phpstorm \u7684\u4e2d\u6587\u8bed\u8a00\u5305\uff0c\u7136\u540e\u91cd\u65b0\u542f\u52a8 phpstorm\u3002 \u89e3\u51b3 PHPStorm \u4e2d\u6587\u4e71\u7801\u95ee\u9898 1. \u67e5\u770b\u6587\u4ef6\u7f16\u7801 \u9996\u5148\uff0c\u6253\u5f00\u6709\u4e71\u7801\u7684\u6587\u4ef6\uff0c\u53f3\u952e\u5355\u51fb\u5e76\u9009\u62e9 &#8220;Properties&#8221;\u3002\u5728 &#8220;General&#8221; \u9009\u9879\u5361\u4e2d\uff0c\u68c0\u67e5 &#8220;File Encoding&#8221; \u662f\u5426\u4e3a &#8220;UTF-8&#8243;\u3002\u5982\u679c\u4e0d\u662f\uff0c\u8bf7\u5c06\u5176\u66f4\u6539\u4e3a &#8220;UTF-8&#8243;\u3002 2. \u914d\u7f6e IDE \u7f16\u7801 \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b \u5982\u679c\u6587\u4ef6\u7f16\u7801\u6b63\u786e\uff0c\u5219\u95ee\u9898\u53ef\u80fd\u51fa\u5728 IDE \u672c\u8eab\u3002\u5728 PHPStorm \u4e2d\uff0c\u8f6c\u5230 &#8220;File&#8221; &gt; &#8220;Settings&#8221;\u3002\u5728 &#8220;Editor&#8221; \u4e0b\u7684 &#8220;File Encodings&#8221; \u9009\u9879\u5361\u4e2d\uff0c\u786e\u4fdd\u9009\u4e2d &#8220;UTF-8&#8221; \u4f5c\u4e3a &#8220;Default encoding for all files&#8221; \u548c &#8220;Encoding for [&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-20788","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20788","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=20788"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20788\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=20788"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=20788"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=20788"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}