Configuration - felipemanga/FemtoIDE GitHub Wiki

Summary

In the same folder as IDE.exe, there's a config.js file. This file is meant to be edited for your own customizations.

Key Binding

FemtoIDE supports chord-style shortcuts, like Emacs. To bind one or more commands to keys, use bindKeys. As an example, the following makes two bindings:

APP.bindKeys("global", {
    "C-M-f": APP.beautify,
    "M-c M-d": _=>APP.log("Hello World")
});

The first binds the beautify command to Control + Meta(alt) + F. The second makes a function that prints a message when you press Meta + C followed by Meta + d.

Any of the commands in the command list can be bound to a shortcut.

Acejs will occasionally block certain shortcuts. For the IDE to detect them, you need to disable Acejs's binding in onCreateACE, like this: ace.commands.bindKeys({ "ctrl-y":null });