whitecatboard / Lua-RTOS-ESP32

Lua RTOS for ESP32
Other
1.18k stars 221 forks source link

improve editor for external copy/paste #307

Closed the0ne closed 4 years ago

the0ne commented 4 years ago

when copying external code - e.g. from the PC - into the esp32 editor, the editor's automatic indenting can be really annoying.

this commit enables the user to disable the automatic indenting by pressing [Ctrl]+T, then pasting the external copied code into the editor and afterwards to re-enable the automatic indenting by pressing [Ctrl]+T again. automatic indenting is always on by default when launching the editor, exactly as before.

this commit also enables the user to create a new empty file which was not possible before. launch the editor. press [Ctrl]+S to save. press [Ctrl]+Q to exit. the file is now saved correctly, unlike before.