在 Visual Studio Code 中重命名 PHP 重构 [英] Rename refactoring for PHP in Visual Studio Code

查看:41
本文介绍了在 Visual Studio Code 中重命名 PHP 重构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Visual Studio Code 中是否对 PHP 进行了重命名重构?这是唯一阻止我从 NetBeans 完全迁移到 VSC 的事情.重命名对我来说非常重要(不是搜索/替换).

Is there a rename refactoring for PHP in Visual Studio Code? It is the only thing that stops me from fully move from NetBeans to VSC. Renaming is very importat for me (not search/replace).

推荐答案

{
  "command": "editor.action.changeAll",
  "key": "ctrl+f2",
  "when": "editorTextFocus && !editorReadonly"
}

{
  "command": "editor.action.rename",
  "key": "f2",
  "when": "editorHasRenameProvider && editorTextFocus && !editorReadonly"
}

在键绑定中.F2 似乎适用于所有文件,CTRL-F2 仅适用于当前文件.

in the keybindings. F2 appears to work across all files, CTRL-F2 in the current file only.

这篇关于在 Visual Studio Code 中重命名 PHP 重构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆