patstew / fix-indent-on-paste

Fix Atom's paste
MIT License
1 stars 0 forks source link

Not working at all #1

Open ollylove opened 4 years ago

ollylove commented 4 years ago

Hi, I've installed this package, but it's not working.. In Editor Settings I've checked both Auto Indent and Auto Indent on Paste.. but when I paste a piece of code in a new line, this is not indented accordingly.. if I paste the code with Ctrl+Shift+V it just doesn't paste anything.. same goes with Auto Indent and Auto Indent on Paste options unchecked.. What am I doing wrong??

patstew commented 4 years ago

I'm afraid that I don't use Atom anymore (VS Code is better), so it's possible that changes in Atom in the last 2 years have broken this extension. Paste without reformatting is now built in https://github.com/atom/atom/pull/15976 so you could use that instead. I don't think the strange indent on paste is ever going to be fixed, apparently that's how the Atom developers like it https://discuss.atom.io/t/copy-paste-indent-wrong-how-to-fix/58694 and the bug has been closed https://github.com/atom/atom/issues/5473. If anybody would like to take over maintaining this extension they're more than welcome, I'm sorry but I won't be working on it in future.