Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Save the last used end of line #952

Closed
MagTun opened this issue Jan 2, 2020 · 7 comments
Closed

Save the last used end of line #952

MagTun opened this issue Jan 2, 2020 · 7 comments

Comments

@MagTun
Copy link

MagTun commented Jan 2, 2020

Please add a way to save the last used end of line so we don't have to select it again each time. One way of doing could be via settings.json

Thanks!

@hellyzh
Copy link
Contributor

hellyzh commented Jan 6, 2020

Thank you for your advice. Do you have more details?

@MagTun
Copy link
Author

MagTun commented Jan 8, 2020

No, I don't know how to implement this, I just know many extensions use the settings.json to store such users preferences.

@hellyzh
Copy link
Contributor

hellyzh commented Jan 8, 2020

What do you mean the last use end of line? is it the selection after click Arduino: Open Serial Monitor like "No line ending", "Newline" ...

@MagTun
Copy link
Author

MagTun commented Jan 8, 2020

Yes this is what I mean: when I want to send text to my connected device, I always have to make sure the end of line is the right one because each time I restart vscode the line ending is set back "No line ending" and not the one I usually use (ex: Newline). If my choice was saved in settings.json, then each time vscode would restart, it will automatically set the end of line to the one I want (ex: Newline and not "No line ending")

I also have to make sure the end of line is the right after I have to "restart extension host" because I unplugged a device connected to serial monitor without closing the serial monitor first (by the way. that would be great if there was a way to prevent the crashing of "extension host" in this case but this is another issue).

@Xepol
Copy link

Xepol commented Feb 26, 2020

I issued a pull request (baud_fix) that covers this. Also you to set this before opening the serial monitor. Hope they accept it in to the main branch soon.

@hellyzh
Copy link
Contributor

hellyzh commented Mar 26, 2020

Arduino extension 0.3.0 has been released. It removed the selection of ending line and use new line with /r/n as default.

@hellyzh hellyzh closed this as completed Mar 27, 2020
@roninbar
Copy link

I don't understand how to select a line ending other than /r/n. Why is there an option in the status bar to change the baud rate but no option to change the line ending? (v0.4.3)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants