php研发工具PhpStorm新版本V2022.1 新增功能亮点介绍
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;">PhpStorm</span></strong><span style="color: black;">V2022.1 版本支持多行和嵌套数组形状、就地提取<span style="color: black;">办法</span>重构,<span style="color: black;">加强</span>对Blade 模板、WordPress、PHP 中的泛型支持等。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><a style="color: black;">PhpStorm官方最新版免费下载试用,历史版本下载,在线文档和<span style="color: black;">帮忙</span>文件下载-慧都网</a></span></p>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">支持多行和嵌套数组形状</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">自 PhpStorm 2021.2 起,已支持 PHPDoc 块中的单行和单级注释。在 PhpStorm 2022.1 中,在 PHPDoc 和#属性 中完全支持多行和嵌套数组形状。</span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/38f616de537d4f78970d875b0c1eb996~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728295394&x-signature=RptDVse%2BR%2B11c%2BX9BTX2%2BdTjHxY%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">添加数组形状注释以获取键的代码完成并推断简单数组数据结构或类对象数组中的值类型。<span style="color: black;">能够</span>在 PhpStorm 中<span style="color: black;">运用</span> PHPDoc 和 Attribute 语法,无论<span style="color: black;">运用</span>哪种,返回类型和参数类型都支持该语法。</span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/00f2c8b461684293b06981d4fbc8f21a~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728295394&x-signature=xAbAHzOnVq6uBDpfWpV92VRQsk4%3D" style="width: 50%; margin-bottom: 20px;"></div>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">支持就地提取<span style="color: black;">办法</span>重构</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">Extract Method是 PhpStorm 中最常用的重构之一。为了简化代码并创建新<span style="color: black;">办法</span>,只需<span style="color: black;">选取</span>一段代码并按⌘⌥M( Cmd+Alt+M/ Ctrl+Alt+M)。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">以前,这将打开重构配置的对话框。在许多<span style="color: black;">状况</span>下,为了提取<span style="color: black;">办法</span>,<span style="color: black;">能够</span><span style="color: black;">运用</span>就地重构来代替。 不会有对话框,并且会立即在编辑器中创建一个新<span style="color: black;">办法</span>(或函数),光标将激活以编辑新<span style="color: black;">办法</span>的名<span style="color: black;">叫作</span>。</span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p26-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/39fa85048cdd4ead8c2ebc05c1a69b3f~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728295394&x-signature=Pi22E7I6JnKQG9Wpo4fETctTuX0%3D" style="width: 50%; margin-bottom: 20px;"></div>
<h1 style="color: black; text-align: left; margin-bottom: 10px;"><span style="color: black;">加强</span>对 Laravel Blade 模板的支持</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">以前,PhpStorm 将 Blade 模板中的<span style="color: black;">每一个</span>代码块视为一个独立的范围,这<span style="color: black;">一般</span>会<span style="color: black;">引起</span>代码完成和洞察力<span style="color: black;">显现</span>问题。在 PhpStorm V2022.1 中,对 IDE 处理 Blade 模板的方式进行了重大修改,<span style="color: black;">能够</span>在.blade.php文件中更好的完成代码,<span style="color: black;">亦</span><span style="color: black;">处理</span>了Blade 模板中代码完成和格式化的<span style="color: black;">更加多</span>问题。</span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/e99b4971e647479e89209fbbe4e3dd58~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728295394&x-signature=dJFNOk%2B2CJaXrvEDQuuepZotoao%3D" style="width: 50%; margin-bottom: 20px;"></div>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">改进WordPress</h1>
<h1 style="color: black; text-align: left; margin-bottom: 10px;"><span style="color: black;">运用</span> `get_template_directory_uri()` 支持动态路径</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">在 PhpStorm 中,<span style="color: black;">能够</span>⌘+Click( Ctrl+Click) 对文件路径在编辑器中打开相应的文件。当路径与 WordPress 函数复合时,这不适用于 WordPress 代码中的动态路径。 <span style="color: black;">这里</span>版本中,添加了对</p>get_template_directory_uri()路径中函数的支持。
<h1 style="color: black; text-align: left; margin-bottom: 10px;">从钩子调用<span style="color: black;">转</span>到注册</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">WordPress 钩子系统功能强大,但<span style="color: black;">没法</span>从调用钩子的位置<span style="color: black;">转</span>到声明处理程序的位置。 <span style="color: black;">此刻</span>调用左侧有一个装订线图标。单击它<span style="color: black;">能够</span>查看钩子用法列表,<span style="color: black;">包含</span>注册和其他调用。</span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/9bf450c8c5a84d0f9c714287bfada06a~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728295394&x-signature=llUSvwZzwZujX%2Ftot7rk8Qa%2FU1w%3D" style="width: 50%; margin-bottom: 20px;"></div>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">新的高级 PHP 元数据功能</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">PhpStorm 除了<span style="color: black;">拥有</span>内置的“代码感知”功能外,还<span style="color: black;">拥有</span><span style="color: black;">外边</span>代码知识。这些知识以.phpstorm.meta.php文件的形式<span style="color: black;">显现</span>。<span style="color: black;">能够</span><span style="color: black;">运用</span>它来教 PhpStorm <span style="color: black;">相关</span>代码库的<span style="color: black;">更加多</span>信息,从而<span style="color: black;">加强</span>完成度。</span></p>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">支持_call 和_callStatic</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">倘若</span>依赖<span style="color: black;">办法</span>_callor _callStatic,<span style="color: black;">那样</span>将失去这些<span style="color: black;">办法</span>的代码完成,<span style="color: black;">由于</span>它们<span style="color: black;">无</span>定义。 <span style="color: black;">这里</span>版本中,<span style="color: black;">能够</span>添加相应的元数据条目并<span style="color: black;">得到</span>此类调用的自动完成功能。<span style="color: black;">乃至</span><span style="color: black;">能够</span>自动处理动态调用,从参数值接收特定的<span style="color: black;">办法</span>名<span style="color: black;">叫作</span>。</span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/eb04398405f348bf9e509887d5f3cf56~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728295394&x-signature=9nVR4B0SIz1%2BDQvDbcGkX%2BnsTQw%3D" style="width: 50%; margin-bottom: 20px;"></div>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">支持联合类型</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">此刻</span><span style="color: black;">能够</span>像@|MyClass在.phpstorm.meta.php中<span style="color: black;">同样</span>指定联合类型——这<span style="color: black;">能够</span>改进模拟的编码辅助。</span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/9095e24f3f1e4c4bb49cce581866f129~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728295394&x-signature=wLbyr6GyNXoG4hcuAh3ge4jnOro%3D" style="width: 50%; margin-bottom: 20px;"></div>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">改进注释支持和泛型</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">继续改进对 PhpStorm 中基于注释的泛型的支持。<span style="color: black;">这里</span>版本中,介绍了<span style="color: black;">更加多</span>案例,包括但不限于:</span></p><span style="color: black;">@psalm-import-type,@phpstan-import-type</span><span style="color: black;">@psalm-trace,@phpstan-trace</span><span style="color: black;">@method标签中的泛型</span>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/8a8bac949fe54331b8d620e6f377d4fc~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728295394&x-signature=blRJ6EdPkCYrSA2m9qvDn4TCxGo%3D" style="width: 50%; margin-bottom: 20px;"></div>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">新建 Composer 项目向导</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">在</span><strong style="color: blue;"><span style="color: black;">PhpStorm最新版本</span></strong><span style="color: black;">中创建新的空项目时,<span style="color: black;">能够</span><span style="color: black;">选取</span>自动为其生成composer.json文件并<span style="color: black;">供给</span>所需的依赖项,创建项目后,PhpStorm 会提示安装。</span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/2d2359a3a6f04147aa9361316ee8612c~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728295394&x-signature=KQHHUcgNh1KiyOCZp9Q6UTmUqgo%3D" style="width: 50%; margin-bottom: 20px;"></div>
<h1 style="color: black; text-align: left; margin-bottom: 10px;"><span style="color: black;">加强</span>用户体验</h1>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">新的<span style="color: black;">通告</span>工具窗口</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">V2022.1用新的<span style="color: black;">通告</span>工具窗口替换了事件日志实例。它<span style="color: black;">能够</span><span style="color: black;">帮忙</span>用户<span style="color: black;">认识</span> IDE <span style="color: black;">通告</span>,并减少<span style="color: black;">错失</span>任何重要信息的机会。默认<span style="color: black;">状况</span>下,新工具窗口<span style="color: black;">位置于</span> IDE 窗口的右下角。所有<span style="color: black;">通告</span>分为两类:<span style="color: black;">意见</span>和时间线。</span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/e7f4f98ae1d447a2aff7526e2c60a6bf~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728295394&x-signature=E2J1S8hXRQ4Jd9IeBJ4AsXiPlPk%3D" style="width: 50%; margin-bottom: 20px;"></div>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">更新了结构搜索和替换对话框</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">从主菜单中,调用结构搜索和替换编辑 | <span style="color: black;">查询</span> | 从结构上搜索。 重新设计了结构搜索和替换对话框,以列出所有模板,以便更<span style="color: black;">容易</span>地浏览它们。 还在Structural Search and Replace 对话框的右上角 添加了Pin Dialog图标。</span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p26-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/159532034c6141f783e4e75827e9a061~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728295394&x-signature=CXxeXUT2pHAeAFrwME941UH68bw%3D" style="width: 50%; margin-bottom: 20px;"></div>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">均匀拆分选项卡</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">此刻</span><span style="color: black;">能够</span>在编辑器选项卡之间平均分配工作空间以<span style="color: black;">拥有</span>相同的宽度。启用设置/首选项 | 高级设置 | 编辑器标签 | 使嵌套拆分中的比例相等。</span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/9d8ef9debea844f789a315cca1f06407~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728295394&x-signature=rWr7RRYgvOrx8ILa%2BF3AQey5I8w%3D" style="width: 50%; margin-bottom: 20px;"></div>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">将 UML 图导出为其他格式</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">此刻</span><span style="color: black;">能够</span>将 UML 图导出为 yEd .graphml、JGraph .drawio、Graphviz .dot、Mermaid .md、Plantuml 和 IntelliJ IDEA .uml 文件,这使得它们与第三方工具兼容。</span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/f73fb839982342b7b38b4563be3bed00~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728295394&x-signature=r4OqLB008jflNXJSX8Vg65PMudM%3D" style="width: 50%; margin-bottom: 20px;"></div>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">改进Markdown</h1>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">从 Markdown 文件运行命令</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">自述文件<span style="color: black;">一般</span>描述运行应用程序所需的<span style="color: black;">过程</span>并列出需要<span style="color: black;">运用</span>的命令。V2022.1 将<span style="color: black;">准许</span>直接从降价文件运行这些命令——只需单击命令左侧装订线中的运行图标<span style="color: black;">就可</span>。</span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/b8a0ce6166064e318f99b6569a9f5c0e~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728295394&x-signature=ADG6H8svok02Dk4MY8aMcSGBEFs%3D" style="width: 50%; margin-bottom: 20px;"></div>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">复制 Markdown 的代码片段</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">向 Markdown 块添加了一个新的复制代码片段操作,它<span style="color: black;">能够</span>让您快速将其内容复制到剪贴板。</span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/69f1ea1a481448cbbe2d9ae98ba3ee46~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728295394&x-signature=iAfmS0orzb6LXJNORo9sAENNbHI%3D" style="width: 50%; margin-bottom: 20px;"></div>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">更新了 Markdown 编辑器浮动工具栏</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">重新设计了文本<span style="color: black;">选取</span>中<span style="color: black;">显现</span>的浮动工具栏,以便更<span style="color: black;">容易</span>地格式化 Markdown 文件。除了新设计之外,工具栏<span style="color: black;">此刻</span><span style="color: black;">准许</span>创建列表并<span style="color: black;">供给</span>用于<span style="color: black;">选取</span>标题样式的菜单。 工具栏是可自定义的,<span style="color: black;">因此呢</span><span style="color: black;">能够</span><span style="color: black;">运用</span>最需要的选项来填充它。转到设置/首选项 | 外观与<span style="color: black;">行径</span> | 菜单和工具栏 | Markdown 编辑器浮动工具栏。</span></p>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">改进<span style="color: black;">危害</span><span style="color: black;">掌控</span>系统</h1>
<h1 style="color: black; text-align: left; margin-bottom: 10px;"><span style="color: black;">运用</span> Git Blame 更新注释</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">改进了<span style="color: black;">运用</span> Git Blame进行注释的功能,使调查引入的更改<span style="color: black;">更易</span>。当鼠标悬停在注释上时,IDE 会在编辑器中<span style="color: black;">明显</span><span style="color: black;">表示</span>行中的差异,并在单击它时 打开Git 日志工具窗口。</span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/dd4d0e78ac714045a45e3590b9f49ba4~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728295394&x-signature=BjpWWhnXDB7tFzHTE7b6qEgRcyk%3D" style="width: 50%; margin-bottom: 20px;"></div>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">拉取请求评论中的<span style="color: black;">意见</span>更改</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">此刻</span><span style="color: black;">能够</span>更<span style="color: black;">容易</span>地在 PhpStorm 中<span style="color: black;">运用</span><span style="color: black;">意见</span>的更改,<span style="color: black;">由于</span><span style="color: black;">能够</span>直接在 IDE 中本地应用或提交更改。</span></p>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">更新了 Git 工具窗口中的提交<span style="color: black;">仔细</span>信息窗格</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">提交<span style="color: black;">仔细</span>信息窗格<span style="color: black;">此刻</span><span style="color: black;">包括</span><span style="color: black;">相关</span> GPG 签名和构建状态的信息 ,以前,此数据仅在 Git 日志中<span style="color: black;">表示</span>为一列。</span></p>
<h1 style="color: black; text-align: left; margin-bottom: 10px;">Git 文件历史记录:<span style="color: black;">无</span>索引的新UI</h1>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">Git 文件历史工具窗口 的新 UI<span style="color: black;">此刻</span>独立于索引过程。即使 Log 索引关闭,数据<span style="color: black;">亦</span>会以新界面<span style="color: black;">暗示</span>。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;"><a style="color: black;">PhpStorm官方最新版免费下载试用,历史版本下载,在线文档和<span style="color: black;">帮忙</span>文件下载-慧都网</a></span></strong></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">以上<span style="color: black;">便是</span>PhpStormV2022.1更新的新功能的<span style="color: black;">关联</span>内容,想要<span style="color: black;">认识</span>PhpStorm<span style="color: black;">更加多</span>信息,<span style="color: black;">能够</span>私聊我。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;">PhpStorm</span></strong><span style="color: black;">是一款</span><strong style="color: blue;"><span style="color: black;">PhpStorm<span style="color: black;">研发</span>工具</span></strong><span style="color: black;">,其旨在<span style="color: black;">加强</span>用户效率,可深刻理解用户的编码,<span style="color: black;">供给</span>智能代码补全,快速导航以及即时错误<span style="color: black;">检测</span>。</span></p>
我完全同意你的看法,期待我们能深入探讨这个问题。 你的努力一定会被看见,相信自己,加油。
页:
[1]