mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-14 18:46:19 +02:00
add key shortcut for auto indenting code. fixes #32
This commit is contained in:
@ -759,7 +759,12 @@ settingsBtn, onboardModal, notificationsBtn, onboardShowInTabOptionBtn, onboardD
|
|||||||
foldGutter: true,
|
foldGutter: true,
|
||||||
gutters: options.gutters || [],
|
gutters: options.gutters || [],
|
||||||
// cursorScrollMargin: '20', has issue with scrolling
|
// cursorScrollMargin: '20', has issue with scrolling
|
||||||
profile: options.profile || ''
|
profile: options.profile || '',
|
||||||
|
extraKeys: {
|
||||||
|
"Shift-Tab": function(cm) {
|
||||||
|
CodeMirror.commands.indentAuto(cm);
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
cm.on('change', function onChange() {
|
cm.on('change', function onChange() {
|
||||||
clearTimeout(updateTimer);
|
clearTimeout(updateTimer);
|
||||||
|
Reference in New Issue
Block a user