如何将键盘快捷键(例如 F2)绑定(bind)到 α-rename在 DrRacket 中,可以通过右键单击变量名称调出的上下文菜单中的 rename foobar
来使用?
documentation归结为“从 API 调用一个神奇的函数名称”,但我很难在所述 API 中找到该操作。
最佳答案
来自 DrRacket 版本 6.0 的历史文件
Added keybindings for the items in the Check Syntax popup menu,
notably c:x;m to rename a variable, c:x;d to just to the
definition of an imported variable, c:x;n to go to the next
occurence of a variable, and c:x;b to go to the binding occurrence
of a variable.
所以 ctrl-x, m 应该可以解决问题。
关于keyboard-shortcuts - 用于 α 重命名的 DrRacket 键盘快捷键,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29844454/