Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
xigoi
5mo ago
0 comments
Share
What editor are you using that does not have a way to paste code with proper indentation?
0 comments
default
newest
oldest
rao-v
4mo 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
OP
4mo 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.
rao-v
4mo ago
Do you know of a IDE that does this automagically?
xigoi
OP
4mo ago
I use Neovim with the yanky plugin.
https://github.com/gbprod/yanky.nvim
j
/
k
navigate · click thread line to collapse