whitecatboard / Lua-RTOS-ESP32

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

Copy and Paste - problems with code indentation #344

Closed stexniolo closed 4 years ago

stexniolo commented 4 years ago

Hello to everybody, I'm writing some Lua code on Visual Studio Code on my pc. I noticed that when I go to paste the written code on my Whitecat board, it doesn't indent well. This is the result: Schermata da 2020-04-15 23-01-07

Is there a better way to transfer the written code on the board instead of just copying and pasting? I'm using picocom to connect to the Lua RTOS console.

Many Thanks.

the0ne commented 4 years ago

I was experiencing the same issue when pasting. So a hotkey as been added to the editor quite a while ago to disable (and re-enable) indenting. You can find it in the editor's help. I believe it's [Ctrl]+[T]

As an alternative to using the clipboard, try uploading files using the whitecat console which can be downloaded here.

stexniolo commented 4 years ago

with [Ctrl]+[T] before pasting the problem has been solved! Thank you very much.

the0ne commented 4 years ago

Welcome ^^