Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Turn autoIndentOnPaste off to prevent indent on pasted code#49

Open
wingyplus wants to merge 1 commit into
atom:masterfrom
wingyplus:iss-34
Open

Turn autoIndentOnPaste off to prevent indent on pasted code#49
wingyplus wants to merge 1 commit into
atom:masterfrom
wingyplus:iss-34

Conversation

@wingyplus

Copy link
Copy Markdown
Contributor

To fix #34. I'll disable autoIndentOnPaste for now.

Thanks.

@winstliu

winstliu commented Sep 7, 2016

Copy link
Copy Markdown
Contributor

Are there any scenarios where this would be helpful to leave on?

@wingyplus

Copy link
Copy Markdown
Contributor Author

When I have a code:

(defn index-of-any [pred coll]
  (first (index-filter pred coll)))

(foo)
(bar)

When I want to copy (foo) and (bar) to another source file under another code block, I don't want copied code to be indent like this:

(defn do-something 
  foo)

  (foo)
  (bar)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pasting code below a completed form indents the pasted code if the last line of the completed form is indented

3 participants