Open mike-lawrence opened 2 years ago
tab
inserts 4 spaces on macOS terminals. Not sure what happen in VSCode though.
What OS you are using btw?
Ubuntu 20.04
The behaviour I mention occurs when using the VSCode-R extension to send
code to radian, so possibly that extension is the culprit in translating
the tab characters to ^I
?
On Wed, Oct 6, 2021 at 12:52 PM Randy Lai @.***> wrote:
tab inserts 4 spaces on macOS terminals. Not sure what happen in VSCode though. What OS you are using btw?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/randy3k/radian/issues/313#issuecomment-936548007, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABEZ7OEXZ52TOA5G7EUAVTUFRWFLANCNFSM5FOZ5WYQ .
--
-- Mike Lawrence, PhD Co-founder & Research Scientist Axem Neurotechnology axemneuro.com
~ Certainty is (usually) folly ~
When pasting the tab character ' '
(\t
) directly into the Radian REPL, the tab key is displayed as ^I
, rather than as four spaces or the tab char ' '
(\t
) itself. The same behavior occurs when VSCode sends code containing tabs to the Radian REPL.
I'm an unrepentant tabs-over-spaces guy, coming from RStudio and working to transition to VSCode+radian. I notice that in the radian console, all my tabs get converted to
^I
. It doesn't break code, just shows up funny in the output. Is this expected behaviour? Is there any way to prevent it?