Daw*_*hia 10 php refactoring visual-studio-code
在Visual Studio Code中是否有重命名的PHP重构?这是阻止我完全从NetBeans迁移到VSC的唯一因素.重命名对我来说非常重要(不是搜索/替换).
有
{
"command": "editor.action.changeAll",
"key": "ctrl+f2",
"when": "editorTextFocus && !editorReadonly"
}
Run Code Online (Sandbox Code Playgroud)
和
{
"command": "editor.action.rename",
"key": "f2",
"when": "editorHasRenameProvider && editorTextFocus && !editorReadonly"
}
Run Code Online (Sandbox Code Playgroud)
在绑定中。 F2似乎适用于所有文件CTRL- F2仅在当前文件中。
有一个名为Intelephense扩展的扩展,它提供了预期的功能(我记得是付费版本)。所以我在 Visual Studio Code 中使用了它好几年,而且效果非常好。
但我最终转向了PhpStorm IDE,以获得更强大的重构功能和强大的 PHP 支持。
| 归档时间: |
|
| 查看次数: |
2471 次 |
| 最近记录: |