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

Turn autoIndentOnPaste off to prevent indent on pasted code #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wingyplus
Copy link
Contributor

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

Thanks.

@winstliu
Copy link
Contributor

winstliu commented Sep 7, 2016

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

@wingyplus
Copy link
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