sketch-sh icon indicating copy to clipboard operation
sketch-sh copied to clipboard

should code blocks be executed after pretty print?

Open no-stack-dub-sack opened this issue 6 years ago • 2 comments

sometimes in working in a code block, it's nice to pretty print your code, but if you're still working on something, code execution might not always be desirable. With code execution just another shortcut away, I think it might be better to leave that up to the user, and have pretty print be a standalone command with no execution.

Thoughts?

no-stack-dub-sack avatar Sep 05 '18 00:09 no-stack-dub-sack

This is a really interesting point. I want to execute the code after pretty print to avoid layout thrashing. Also, you can't pretty print code with syntax error anyway.

thangngoc89 avatar Sep 05 '18 01:09 thangngoc89

I agree with the @no-stack-dub-sack's proposal , and also I would like it was possible to pp only one one block, for example the one with the active editing and having a button for the total pp.

fstiffo avatar Sep 06 '18 13:09 fstiffo