Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
rao-v
52 days ago
|
parent
|
context
|
favorite
| on:
Fabrice Bellard Releases MicroQuickJS
One day Brython (python with braces allowing copy paste code to autoindent) will be well supported by LSPs and world peace will ensure
twic
52 days ago
|
next
[–]
SyntaxError: not a chance
xigoi
51 days ago
|
prev
[–]
What editor are you using that does not have a way to paste code with proper indentation?
rao-v
40 days ago
|
parent
[–]
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.
xigoi
40 days ago
|
root
|
parent
[–]
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.
rao-v
32 days ago
|
root
|
parent
[–]
Do you know of a IDE that does this automagically?
xigoi
32 days ago
|
root
|
parent
[–]
I use Neovim with the yanky plugin.
https://github.com/gbprod/yanky.nvim
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: