We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8c90cb5 + 516e532 commit d9713feCopy full SHA for d9713fe
src/ide.ts
@@ -657,7 +657,15 @@ export class Editor {
657
"Cmd-1": () => this.format({type: "heading", level: 1}),
658
"Cmd-2": () => this.format({type: "heading", level: 2}),
659
"Cmd-3": () => this.format({type: "heading", level: 3}),
660
- "Cmd-L": () => this.format({type: "item"})
+ "Cmd-L": () => this.format({type: "item"}),
661
+ "Tab": (cm) => {
662
+ if (cm.somethingSelected()) {
663
+ cm.indentSelection("add");
664
+ } else {
665
+ cm.replaceSelection(cm.getOption("indentWithTabs")? "\t":
666
+ Array(cm.getOption("indentUnit") + 1).join(" "), "end", "+input");
667
+ }
668
669
})
670
};
671
0 commit comments