1

Cloud9 IDE中,如果焦点设置到文件侧边栏(可通过ctrl+切换u),如何重新关注编辑器窗口以继续编码而不恢复使用鼠标?

我目前的解决方法是点击ctrl+ gfor go to line {n},但这会增加不必要的步骤,并可能导致页面滚动到与当前工作完全不同的位置。

4

1 回答 1

0

这没有捷径可走。但是很容易用用户脚本添加

var editors = require("ext/editors/editors");
require("ext/commands/commands").addCommand({
    name: "focusEditor",
    exec:function() {
        if (editors.currentEditor)
            editors.currentEditor.focus();
    },
    bindKey: "ctrl-alt-w"
});

如果您能想到一个很好的捷径,也可以在https://github.com/ajaxorg/cloud9/issues/2032#issuecomment-9427700上提出建议

于 2013-09-20T14:05:44.863 回答