Live data from Hacker News

Fabrice Bellard Releases MicroQuickJS

github.com

591–594 of 594 posts

Re: Fabrice Bellard Releases MicroQuickJS

#591
post #552
post #215

Earlier quoted context omitted.

One day Brython (python with braces allowing copy paste code to autoindent) will be well supported by LSPs and world peace will ensure

What editor are you using that does not have a way to paste code with proper indentation?

There is not enough information in pasted code for a language server to indent pasted in python code. Try copy pasting a random stackoverflow snippet into deeply indented python code.

Re: Fabrice Bellard Releases MicroQuickJS

#592
post #591
post #552

Earlier quoted context omitted.

What editor are you using that does not have a way to paste code with proper indentation?

There is not enough information in pasted code for a language server to indent pasted in python code. Try copy pasting a random stackoverflow snippet into deeply indented python code.

Why would you need a language server for that? You simply prepend the indentation of the current line to every line of the pasted text.

Re: Fabrice Bellard Releases MicroQuickJS

#593
post #592
post #591

Earlier quoted context omitted.

There is not enough information in pasted code for a language server to indent pasted in python code. Try copy pasting a random stackoverflow snippet into deeply indented python code.

Why would you need a language server for that? You simply prepend the indentation of the current line to every line of the pasted text.

Do you know of a IDE that does this automagically?

Re: Fabrice Bellard Releases MicroQuickJS

#594
post #593
post #592

Earlier quoted context omitted.

Why would you need a language server for that? You simply prepend the indentation of the current line to every line of the pasted text.

Do you know of a IDE that does this automagically?

I use Neovim with the yanky plugin.

https://github.com/gbprod/yanky.nvim

Post reply on HN