Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only run on save? #66

Open
inspire22 opened this issue May 3, 2020 · 5 comments
Open

Only run on save? #66

inspire22 opened this issue May 3, 2020 · 5 comments

Comments

@inspire22
Copy link

I've got some invalid stylus in my file, but the editor won't let me fix it at all which is super frustrating...

.ml1 margin-left: 1em.ml2 margin-left: 2em, .my0
margin-top 0;
margin-bottom 0;

If I try to put a newline after the first "1em" it immediately adds a comma and moves it back up to that line.

Is there any way to run the fixer only on save? Or not run when there's linter errors? I'm having to set the code type to another language to do edits now then put it back to stylus when I'm fairly sure it won't wrestle with me.

@ThisIsManta
Copy link
Owner

I don't quite fully understand you. Would you mind uploading a GIF/video, please?

@rendaoer
Copy link

动画
Trying to start writing code from a new line, but can't do it

@ThisIsManta
Copy link
Owner

What's your VS Code settings? Did you have some sort of format when type turned on?

@rendaoer
Copy link

It's all default settings, I didn't change it. I just want to be able to add new lines to write the code and then format it when saving

@KnifeFed
Copy link

When editor.formatOnType is enabled, I can't insert newlines in the file. They're immediately removed.

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

No branches or pull requests

4 participants