格式化快捷键
This commit is contained in:
parent
ddd00a468d
commit
54b051a45e
|
@ -288,6 +288,17 @@ var wide = {
|
|||
|
||||
return;
|
||||
}
|
||||
|
||||
if (event.altKey && event.shiftKey && event.which === 70) { // Alt+Shift+F 格式化当前编辑器文件
|
||||
if (!wide.curNode) {
|
||||
return false;
|
||||
}
|
||||
|
||||
wide.fmt();
|
||||
event.preventDefault();
|
||||
|
||||
return;
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue