Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
rao-v
6mo ago
0 comments
Save
Share
One day Brython (python with braces allowing copy paste code to autoindent) will be well supported by LSPs and world peace will ensure
0 comments
4 comments · 2 top-level
top
newest
oldest
xigoi
6mo ago
· 2 in thread
What editor are you using that does not have a way to paste code with proper indentation?
rao-v
OP
5mo ago
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
5mo ago
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.
1 more reply
twic
6mo ago
SyntaxError: not a chance
j
/
k
navigate · click thread line to collapse