mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
remove annoying soft-tab behaviour and add dedent
This commit is contained in:
parent
2290cc18bb
commit
350254af2b
1 changed files with 8 additions and 0 deletions
|
@ -39,8 +39,16 @@
|
||||||
matchBrackets: true,
|
matchBrackets: true,
|
||||||
lineNumbers: true,
|
lineNumbers: true,
|
||||||
smartIndent: true,
|
smartIndent: true,
|
||||||
|
indentWithTabs: true,
|
||||||
|
indentUnit: 4,
|
||||||
});
|
});
|
||||||
editor.setValue("print(\"Hello World!\")\n");
|
editor.setValue("print(\"Hello World!\")\n");
|
||||||
|
editor.addKeyMap({
|
||||||
|
"Shift-Tab": function (cm) {
|
||||||
|
// dedent functionality
|
||||||
|
cm.execCommand("indentLess");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// Misc Functions
|
// Misc Functions
|
||||||
function output(text) {
|
function output(text) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue