Repository navigation
Add auto-indent when pasting - #4192
Conversation
53a0d45 to
958dc92
Compare
Signed-off-by: Nathan Sobo <[email protected]>
…acters Signed-off-by: Nathan Sobo <[email protected]>
Signed-off-by: Nathan Sobo <[email protected]>
621756e to
83040d1
Compare
This way, this option (`autoIndentOnPaste`) can be turned off for indentation-sensitive languages like coffeescript.
b6c71a3 to
175a8b6
Compare
There was a problem hiding this comment.
What do you guys think of this description?
There was a problem hiding this comment.
What about something like "Automatically indent the cursor when inserting a newline"?
|
Ok, merging since c6c58eb passed CI. |
Add auto-indent when pasting
|
✨ |
|
This seems to cause a problem when I paste, I think ST3 uses ctrl+shift+v, if you want a relative paste, or so called special paste. I would rather have a paste as it is by default so i know what to expect and do manual indentation if I have to. The problem at the moment is similar to this ticked #4235, but on coffee-script. (on windows 7) |
|
@valtido, is it still happening for you on the latest release? We have now disabled auto-indent-on-paste by default for all whitespace sensitive languages: CoffeeScript, YAML, python, and Sass. |
|
If I paste coffeescript with `Auto indent on paste" on, the problem is still there, If I turn off |
Currently, auto-indent is not used when pasting. This makes sense for coffeescript and other indentation-sensitive languages, because in those languages, auto-indent would often make the indentation worse. This adds a separate config option,
autoIndentOnPastethat allows auto-indentation to be used when pasting.@atom/core Do you guys think there's anything we need to do make it clear that
autoIndentOnPastecompletely supercedesnormalizeIndentOnPaste?Closes #1407
::suggestedIndentForBufferRow, base indentation on previous non-blank lineeditor.autoIndentOnPastefor auto-indenting pasted textautoIndentconfig option, differentiating it fromautoIndentOnPaste