Question

Within the Cloud9 IDE, if the focus is set to the Files sidebar (toggleable via ctrl + u), how does one refocus on the editor window to continue coding without reverting to using the mouse?

My current workaround is to hit ctrl + g for go to line {n}, but this adds unnecessary steps and can lead to the page scrolling to a completely different location than currently working on.

Was it helpful?

Solution

There is no shortcut for this. But it is easy to add with user script

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"
});

if you can think of a good shortcut for this suggest it on https://github.com/ajaxorg/cloud9/issues/2032#issuecomment-9427700 too

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top