{"id":21586,"date":"2024-11-19T14:26:04","date_gmt":"2024-11-19T06:26:04","guid":{"rendered":"https:\/\/fwq.ai\/blog\/21586\/"},"modified":"2024-11-19T14:26:04","modified_gmt":"2024-11-19T06:26:04","slug":"phpstorm%e6%80%8e%e4%b9%88%e4%bd%bf%e7%94%a8","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/21586\/","title":{"rendered":"phpstorm\u600e\u4e48\u4f7f\u7528"},"content":{"rendered":"<blockquote><p>\n  \u4f7f\u7528 phpstorm \u7684\u6b65\u9aa4\uff1a\u5b89\u88c5\uff1a\u8bbf\u95ee\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5e76\u5b89\u88c5\u3002\u65b0\u5efa\u9879\u76ee\uff1a\u9009\u62e9\u6a21\u677f\u548c\u9879\u76ee\u540d\u79f0\u3002\u914d\u7f6e\u89e3\u91ca\u5668\uff1a\u8bbe\u7f6e\u6b63\u786e\u7684 php \u89e3\u91ca\u5668\u3002\u7f16\u5199\u4ee3\u7801\uff1a\u5229\u7528\u81ea\u52a8\u8865\u5168\u3001\u9ad8\u4eae\u548c\u9519\u8bef\u68c0\u6d4b\u529f\u80fd\u3002\u8c03\u8bd5\uff1a\u8bbe\u7f6e\u65ad\u70b9\uff0c\u4f7f\u7528\u8c03\u8bd5\u5668\u68c0\u67e5\u53d8\u91cf\u548c\u6267\u884c\u6b65\u9aa4\u3002\u524d\u7aef\u5f00\u53d1\uff1a\u4f7f\u7528 emmet \u5feb\u6377\u65b9\u5f0f\u5feb\u901f\u751f\u6210\u4ee3\u7801\u3002\u5176\u4ed6\u529f\u80fd\uff1a\u96c6\u6210\u7248\u672c\u63a7\u5236\u3001\u652f\u6301\u91cd\u6784\u3001\u5bfc\u822a\u548c\u4ee3\u7801\u751f\u6210\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202406\/05\/2024060500331983315.jpg\" class=\"aligncenter\" title=\"phpstorm\u600e\u4e48\u4f7f\u7528\u63d2\u56fe\" alt=\"phpstorm\u600e\u4e48\u4f7f\u7528\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u4f7f\u7528 PHPStorm<\/strong><\/p>\n<p><strong>\u4e00\u3001\u5b89\u88c5<\/strong><\/p>\n<ul>\n<li>\u8bbf\u95ee PHPStorm \u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5b89\u88c5\u7a0b\u5e8f\u3002<\/li>\n<li>\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f\u5e76\u6309\u7167\u8bf4\u660e\u8fdb\u884c\u5b89\u88c5\u3002<\/li>\n<\/ul>\n<p><strong>\u4e8c\u3001\u65b0\u5efa\u9879\u76ee<\/strong><\/p>\n<ul>\n<li>\u6253\u5f00 PHPStorm\uff0c\u9009\u62e9 &#8220;File&#8221; &gt; &#8220;New Project&#8221;\u3002<\/li>\n<li>\u9009\u62e9\u4e00\u4e2a\u9879\u76ee\u6a21\u677f\uff0c\u7136\u540e\u9009\u62e9\u9879\u76ee\u4f4d\u7f6e\u3002<\/li>\n<li>\u8f93\u5165\u9879\u76ee\u540d\u79f0\u5e76\u5355\u51fb &#8220;Create&#8221;\u3002<\/li>\n<\/ul>\n<p><strong>\u4e09\u3001\u914d\u7f6e\u89e3\u91ca\u5668<\/strong><\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<ul>\n<li>\u6253\u5f00 &#8220;Settings&#8221;\uff08Windows\uff1aCtrl+Alt+S\uff0cmacOS\uff1aCmd+\uff0c\uff09\u3002<\/li>\n<li>\u5728\u5de6\u4fa7\u83dc\u5355\u4e2d\uff0c\u9009\u62e9 &#8220;PHP&#8221;\u3002<\/li>\n<li>\u5728 &#8220;Interpreter&#8221; \u9009\u9879\u5361\u4e0b\uff0c\u8bbe\u7f6e\u6b63\u786e\u7684 PHP \u89e3\u91ca\u5668\u3002<\/li>\n<\/ul>\n<p><strong>\u56db\u3001\u7f16\u5199\u4ee3\u7801<\/strong><\/p>\n<ul>\n<li>\u5728 &#8220;Project&#8221; \u89c6\u56fe\u4e2d\uff0c\u53f3\u952e\u5355\u51fb\u9879\u76ee\u6587\u4ef6\u5939\uff0c\u9009\u62e9 &#8220;New&#8221; &gt; &#8220;PHP File&#8221;\u3002<\/li>\n<li>\u8f93\u5165\u6587\u4ef6\u540d\u5e76\u8f93\u5165\u4ee3\u7801\u3002<\/li>\n<li>PHPStorm \u63d0\u4f9b\u4ee3\u7801\u81ea\u52a8\u8865\u5168\u3001\u8bed\u6cd5\u7a81\u51fa\u663e\u793a\u548c\u9519\u8bef\u68c0\u6d4b\u7b49\u529f\u80fd\u3002<\/li>\n<\/ul>\n<p><strong>\u4e94\u3001\u8c03\u8bd5<\/strong><\/p>\n<ul>\n<li>\u5728\u4ee3\u7801\u4e2d\u8bbe\u7f6e\u65ad\u70b9\uff08\u884c\u53f7\u65c1\u8fb9\u7684\u84dd\u8272\u5706\u70b9\uff09\u3002<\/li>\n<li>\u6309\u4e0b &#8220;F9&#8221; (Windows) \u6216 &#8220;Fn+F9&#8221; (macOS) \u8fd0\u884c\u8c03\u8bd5\u5668\u3002<\/li>\n<li>PHPStorm \u5c06\u5728\u65ad\u70b9\u6682\u505c\u6267\u884c\uff0c\u5141\u8bb8\u60a8\u68c0\u67e5\u53d8\u91cf\u548c\u6267\u884c\u6b65\u9aa4\u3002<\/li>\n<\/ul>\n<p><strong>\u516d\u3001\u524d\u7aef\u5f00\u53d1<\/strong><\/p>\n<ul>\n<li>PHPStorm \u4e5f\u652f\u6301\u524d\u7aef\u5f00\u53d1\u3002<\/li>\n<li>\u6309\u4e0b &#8220;Ctrl+Alt+Shift+A&#8221; (Windows) \u6216 &#8220;Cmd+Option+Shift+A&#8221; (macOS) \u6253\u5f00 &#8220;Find Action&#8221; \u5bf9\u8bdd\u6846\uff0c\u7136\u540e\u641c\u7d22 &#8220;Emmet&#8221;\u3002<\/li>\n<li>\u4f7f\u7528 Emmet \u5feb\u6377\u65b9\u5f0f\u5feb\u901f\u751f\u6210 HTML \u548c CSS \u4ee3\u7801\u3002<\/li>\n<\/ul>\n<p><strong>\u4e03\u3001\u5176\u4ed6\u529f\u80fd<\/strong><\/p>\n<ul>\n<li> <strong>\u7248\u672c\u63a7\u5236\uff1a<\/strong>\u96c6\u6210 Git \u548c\u5176\u4ed6\u7248\u672c\u63a7\u5236\u7cfb\u7edf\u3002<\/li>\n<li> <strong>\u91cd\u6784\uff1a<\/strong>\u91cd\u547d\u540d\u3001\u79fb\u52a8\u548c\u5220\u9664\u4ee3\u7801\u5143\u7d20\u3002<\/li>\n<li> <strong>\u5bfc\u822a\uff1a<\/strong>\u5feb\u901f\u8df3\u8f6c\u5230\u5b9a\u4e49\u3001\u65b9\u6cd5\u548c\u53d8\u91cf\u3002<\/li>\n<li> <strong>\u4ee3\u7801\u751f\u6210\uff1a<\/strong>\u4f7f\u7528\u4ee3\u7801\u6a21\u677f\u548c\u4ee3\u7801\u7247\u6bb5\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u4f7f\u7528\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>\u4f7f\u7528 phpstorm \u7684\u6b65\u9aa4\uff1a\u5b89\u88c5\uff1a\u8bbf\u95ee\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5e76\u5b89\u88c5\u3002\u65b0\u5efa\u9879\u76ee\uff1a\u9009\u62e9\u6a21\u677f\u548c\u9879\u76ee\u540d\u79f0\u3002\u914d\u7f6e\u89e3\u91ca\u5668\uff1a\u8bbe\u7f6e\u6b63\u786e\u7684 php \u89e3\u91ca\u5668\u3002\u7f16\u5199\u4ee3\u7801\uff1a\u5229\u7528\u81ea\u52a8\u8865\u5168\u3001\u9ad8\u4eae\u548c\u9519\u8bef\u68c0\u6d4b\u529f\u80fd\u3002\u8c03\u8bd5\uff1a\u8bbe\u7f6e\u65ad\u70b9\uff0c\u4f7f\u7528\u8c03\u8bd5\u5668\u68c0\u67e5\u53d8\u91cf\u548c\u6267\u884c\u6b65\u9aa4\u3002\u524d\u7aef\u5f00\u53d1\uff1a\u4f7f\u7528 emmet \u5feb\u6377\u65b9\u5f0f\u5feb\u901f\u751f\u6210\u4ee3\u7801\u3002\u5176\u4ed6\u529f\u80fd\uff1a\u96c6\u6210\u7248\u672c\u63a7\u5236\u3001\u652f\u6301\u91cd\u6784\u3001\u5bfc\u822a\u548c\u4ee3\u7801\u751f\u6210\u3002 \u5982\u4f55\u4f7f\u7528 PHPStorm \u4e00\u3001\u5b89\u88c5 \u8bbf\u95ee PHPStorm \u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5b89\u88c5\u7a0b\u5e8f\u3002 \u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f\u5e76\u6309\u7167\u8bf4\u660e\u8fdb\u884c\u5b89\u88c5\u3002 \u4e8c\u3001\u65b0\u5efa\u9879\u76ee \u6253\u5f00 PHPStorm\uff0c\u9009\u62e9 &#8220;File&#8221; &gt; &#8220;New Project&#8221;\u3002 \u9009\u62e9\u4e00\u4e2a\u9879\u76ee\u6a21\u677f\uff0c\u7136\u540e\u9009\u62e9\u9879\u76ee\u4f4d\u7f6e\u3002 \u8f93\u5165\u9879\u76ee\u540d\u79f0\u5e76\u5355\u51fb &#8220;Create&#8221;\u3002 \u4e09\u3001\u914d\u7f6e\u89e3\u91ca\u5668 \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b \u6253\u5f00 &#8220;Settings&#8221;\uff08Windows\uff1aCtrl+Alt+S\uff0cmacOS\uff1aCmd+\uff0c\uff09\u3002 \u5728\u5de6\u4fa7\u83dc\u5355\u4e2d\uff0c\u9009\u62e9 &#8220;PHP&#8221;\u3002 \u5728 &#8220;Interpreter&#8221; \u9009\u9879\u5361\u4e0b\uff0c\u8bbe\u7f6e\u6b63\u786e\u7684 PHP \u89e3\u91ca\u5668\u3002 \u56db\u3001\u7f16\u5199\u4ee3\u7801 \u5728 &#8220;Project&#8221; \u89c6\u56fe\u4e2d\uff0c\u53f3\u952e\u5355\u51fb\u9879\u76ee\u6587\u4ef6\u5939\uff0c\u9009\u62e9 &#8220;New&#8221; &gt; &#8220;PHP File&#8221;\u3002 \u8f93\u5165\u6587\u4ef6\u540d\u5e76\u8f93\u5165\u4ee3\u7801\u3002 PHPStorm \u63d0\u4f9b\u4ee3\u7801\u81ea\u52a8\u8865\u5168\u3001\u8bed\u6cd5\u7a81\u51fa\u663e\u793a\u548c\u9519\u8bef\u68c0\u6d4b\u7b49\u529f\u80fd\u3002 \u4e94\u3001\u8c03\u8bd5 \u5728\u4ee3\u7801\u4e2d\u8bbe\u7f6e\u65ad\u70b9\uff08\u884c\u53f7\u65c1\u8fb9\u7684\u84dd\u8272\u5706\u70b9\uff09\u3002 \u6309\u4e0b &#8220;F9&#8221; (Windows) \u6216 &#8220;Fn+F9&#8221; (macOS) \u8fd0\u884c\u8c03\u8bd5\u5668\u3002 [&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-21586","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21586","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=21586"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21586\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=21586"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=21586"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=21586"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}