{"id":20791,"date":"2024-11-19T12:03:04","date_gmt":"2024-11-19T04:03:04","guid":{"rendered":"https:\/\/fwq.ai\/blog\/20791\/"},"modified":"2024-11-19T12:03:04","modified_gmt":"2024-11-19T04:03:04","slug":"phpstorm%e6%80%8e%e4%b9%88%e6%94%b9%e5%ad%97%e4%bd%93%e5%a4%a7%e5%b0%8f","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/20791\/","title":{"rendered":"phpstorm\u600e\u4e48\u6539\u5b57\u4f53\u5927\u5c0f"},"content":{"rendered":"<blockquote><p>\n  phpstorm\u4e2d\u66f4\u6539\u5b57\u4f53\u5927\u5c0f\u7684\u6b65\u9aa4\u5982\u4e0b\uff1a\u8fdb\u5165\u201c\u8bbe\u7f6e\u201d&gt;\u201c\u7f16\u8f91\u5668\u201d&gt;\u201c\u5b57\u4f53\u201d\u5728\u201c\u5b57\u4f53\u5927\u5c0f\u201d\u5b57\u6bb5\u4e2d\u8f93\u5165\u5177\u4f53\u5927\u5c0f\uff08\u5355\u4f4d\uff1a\u50cf\u7d20\uff09\u9884\u89c8\u6548\u679c\u5e76\u5355\u51fb\u201c\u5e94\u7528\u201d\u6309\u94ae\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202404\/07\/2024040722271938656.jpg\" class=\"aligncenter\" title=\"phpstorm\u600e\u4e48\u6539\u5b57\u4f53\u5927\u5c0f\u63d2\u56fe\" alt=\"phpstorm\u600e\u4e48\u6539\u5b57\u4f53\u5927\u5c0f\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u5728 PHPStorm \u4e2d\u66f4\u6539\u5b57\u4f53\u5927\u5c0f<\/strong><\/p>\n<p>PHPStorm \u662f\u4e00\u6b3e\u6d41\u884c\u7684\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\uff0c\u7528\u4e8e\u5f00\u53d1 PHP \u5e94\u7528\u7a0b\u5e8f\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u66f4\u6539 PHPStorm \u4e2d\u7684\u5b57\u4f53\u5927\u5c0f\uff1a<\/p>\n<p><strong>1. \u6253\u5f00\u201c\u8bbe\u7f6e\u201d<\/strong><\/p>\n<ul>\n<li>\u5728 Windows \u4e0a\uff1a\u5355\u51fb\u201c\u6587\u4ef6\u201d\u83dc\u5355\uff0c\u7136\u540e\u9009\u62e9\u201c\u8bbe\u7f6e\u201d\u3002<\/li>\n<li>\u5728 macOS \u4e0a\uff1a\u5355\u51fb\u201cPHPStorm\u201d\u83dc\u5355\uff0c\u7136\u540e\u9009\u62e9\u201c\u9996\u9009\u9879\u201d\u3002<\/li>\n<\/ul>\n<p><strong>2. \u5bfc\u822a\u5230\u201c\u5b57\u4f53\u201d\u8bbe\u7f6e<\/strong><\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<ul>\n<li>\u5728\u5de6\u4fa7\u7a97\u683c\u4e2d\uff0c\u5c55\u5f00\u201c\u7f16\u8f91\u5668\u201d\u90e8\u5206\u3002<\/li>\n<li>\u9009\u62e9\u201c\u5b57\u4f53\u201d\u3002<\/li>\n<\/ul>\n<p><strong>3. \u66f4\u6539\u5b57\u4f53\u5927\u5c0f<\/strong><\/p>\n<ul>\n<li>\u5728\u201c\u5b57\u4f53\u5927\u5c0f\u201d\u5b57\u6bb5\u4e2d\uff0c\u8f93\u5165\u6240\u9700\u7684\u5b57\u4f53\u5927\u5c0f\uff08\u4ee5\u50cf\u7d20\u4e3a\u5355\u4f4d\uff09\u3002<\/li>\n<li>\u60a8\u53ef\u4ee5\u76f4\u63a5\u8f93\u5165\u503c\u6216\u4f7f\u7528\u65c1\u8fb9\u7684\u4e0a\u4e0b\u7bad\u5934\u8fdb\u884c\u8c03\u6574\u3002<\/li>\n<\/ul>\n<p><strong>4. \u9884\u89c8\u5e76\u5e94\u7528\u66f4\u6539<\/strong><\/p>\n<ul>\n<li>\u5728\u201c\u9884\u89c8\u201d\u90e8\u5206\u9884\u89c8\u66f4\u6539\u3002<\/li>\n<li>\u5982\u679c\u6ee1\u610f\uff0c\u8bf7\u5355\u51fb\u201c\u5e94\u7528\u201d\u6309\u94ae\u4ee5\u4fdd\u5b58\u66f4\u6539\u3002<\/li>\n<\/ul>\n<p><strong>\u5176\u4ed6\u9009\u9879\uff1a<\/strong><\/p>\n<ul>\n<li> <strong>\u4e0d\u540c\u7684\u5b57\u4f53\u91cd\uff1a<\/strong> \u60a8\u8fd8\u53ef\u4ee5\u9009\u62e9\u4e0d\u540c\u7684\u5b57\u4f53\u91cd\uff0c\u4f8b\u5982\u666e\u901a\u3001\u7c97\u4f53\u3001\u659c\u4f53\u7b49\u3002<\/li>\n<li> <strong>\u4ee3\u7801\u6837\u5f0f\uff1a<\/strong> PHPStorm \u5141\u8bb8\u60a8\u4e3a\u4e0d\u540c\u7684\u4ee3\u7801\u5143\u7d20\uff08\u5982\u53d8\u91cf\u3001\u51fd\u6570\u3001\u6ce8\u91ca\u7b49\uff09\u8bbe\u7f6e\u4e0d\u540c\u7684\u5b57\u4f53\u5927\u5c0f\u3002<\/li>\n<li> <strong>\u4e3b\u9898\uff1a<\/strong> \u67d0\u4e9b\u4e3b\u9898\u53ef\u80fd\u9884\u5b9a\u4e49\u4e86\u7279\u5b9a\u7684\u5b57\u4f53\u5927\u5c0f\u3002\u60a8\u53ef\u4ee5\u5c1d\u8bd5\u4e0d\u540c\u7684\u4e3b\u9898\uff0c\u4ee5\u627e\u5230\u6700\u9002\u5408\u60a8\u7684\u4e3b\u9898\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u6539\u5b57\u4f53\u5927\u5c0f\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>phpstorm\u4e2d\u66f4\u6539\u5b57\u4f53\u5927\u5c0f\u7684\u6b65\u9aa4\u5982\u4e0b\uff1a\u8fdb\u5165\u201c\u8bbe\u7f6e\u201d&gt;\u201c\u7f16\u8f91\u5668\u201d&gt;\u201c\u5b57\u4f53\u201d\u5728\u201c\u5b57\u4f53\u5927\u5c0f\u201d\u5b57\u6bb5\u4e2d\u8f93\u5165\u5177\u4f53\u5927\u5c0f\uff08\u5355\u4f4d\uff1a\u50cf\u7d20\uff09\u9884\u89c8\u6548\u679c\u5e76\u5355\u51fb\u201c\u5e94\u7528\u201d\u6309\u94ae \u5982\u4f55\u5728 PHPStorm \u4e2d\u66f4\u6539\u5b57\u4f53\u5927\u5c0f PHPStorm \u662f\u4e00\u6b3e\u6d41\u884c\u7684\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\uff0c\u7528\u4e8e\u5f00\u53d1 PHP \u5e94\u7528\u7a0b\u5e8f\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u66f4\u6539 PHPStorm \u4e2d\u7684\u5b57\u4f53\u5927\u5c0f\uff1a 1. \u6253\u5f00\u201c\u8bbe\u7f6e\u201d \u5728 Windows \u4e0a\uff1a\u5355\u51fb\u201c\u6587\u4ef6\u201d\u83dc\u5355\uff0c\u7136\u540e\u9009\u62e9\u201c\u8bbe\u7f6e\u201d\u3002 \u5728 macOS \u4e0a\uff1a\u5355\u51fb\u201cPHPStorm\u201d\u83dc\u5355\uff0c\u7136\u540e\u9009\u62e9\u201c\u9996\u9009\u9879\u201d\u3002 2. \u5bfc\u822a\u5230\u201c\u5b57\u4f53\u201d\u8bbe\u7f6e \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b \u5728\u5de6\u4fa7\u7a97\u683c\u4e2d\uff0c\u5c55\u5f00\u201c\u7f16\u8f91\u5668\u201d\u90e8\u5206\u3002 \u9009\u62e9\u201c\u5b57\u4f53\u201d\u3002 3. \u66f4\u6539\u5b57\u4f53\u5927\u5c0f \u5728\u201c\u5b57\u4f53\u5927\u5c0f\u201d\u5b57\u6bb5\u4e2d\uff0c\u8f93\u5165\u6240\u9700\u7684\u5b57\u4f53\u5927\u5c0f\uff08\u4ee5\u50cf\u7d20\u4e3a\u5355\u4f4d\uff09\u3002 \u60a8\u53ef\u4ee5\u76f4\u63a5\u8f93\u5165\u503c\u6216\u4f7f\u7528\u65c1\u8fb9\u7684\u4e0a\u4e0b\u7bad\u5934\u8fdb\u884c\u8c03\u6574\u3002 4. \u9884\u89c8\u5e76\u5e94\u7528\u66f4\u6539 \u5728\u201c\u9884\u89c8\u201d\u90e8\u5206\u9884\u89c8\u66f4\u6539\u3002 \u5982\u679c\u6ee1\u610f\uff0c\u8bf7\u5355\u51fb\u201c\u5e94\u7528\u201d\u6309\u94ae\u4ee5\u4fdd\u5b58\u66f4\u6539\u3002 \u5176\u4ed6\u9009\u9879\uff1a \u4e0d\u540c\u7684\u5b57\u4f53\u91cd\uff1a \u60a8\u8fd8\u53ef\u4ee5\u9009\u62e9\u4e0d\u540c\u7684\u5b57\u4f53\u91cd\uff0c\u4f8b\u5982\u666e\u901a\u3001\u7c97\u4f53\u3001\u659c\u4f53\u7b49\u3002 \u4ee3\u7801\u6837\u5f0f\uff1a PHPStorm \u5141\u8bb8\u60a8\u4e3a\u4e0d\u540c\u7684\u4ee3\u7801\u5143\u7d20\uff08\u5982\u53d8\u91cf\u3001\u51fd\u6570\u3001\u6ce8\u91ca\u7b49\uff09\u8bbe\u7f6e\u4e0d\u540c\u7684\u5b57\u4f53\u5927\u5c0f\u3002 \u4e3b\u9898\uff1a \u67d0\u4e9b\u4e3b\u9898\u53ef\u80fd\u9884\u5b9a\u4e49\u4e86\u7279\u5b9a\u7684\u5b57\u4f53\u5927\u5c0f\u3002\u60a8\u53ef\u4ee5\u5c1d\u8bd5\u4e0d\u540c\u7684\u4e3b\u9898\uff0c\u4ee5\u627e\u5230\u6700\u9002\u5408\u60a8\u7684\u4e3b\u9898\u3002 \u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u6539\u5b57\u4f53\u5927\u5c0f\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-20791","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20791","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=20791"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20791\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=20791"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=20791"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=20791"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}