Fork me on GitHub
#cursive
<
2015-07-24
>
henryw37416:07:04

I have a formatting issue I don’t seem able to crack. I have ‘default to Only Indent’ on, which mostly is fine, there is just this case I can’t find the setting for:

(do-blah-blah x
              y
              z)
gets formatted to
(do-blah-blah x
      y
      z)
but i want to keep the original. so this is the case where I want to vertically align with the second list item, even if it appears on the same line as the first. any help appreciated.

meow18:07:56

For anyone using boot with Cursive there is some advice here now: https://github.com/boot-clj/boot/wiki/For-Cursive-Users

meow18:07:19

how do I turn off the code completion feature for the Enter key?

meow18:07:58

found it: choose lookup item

meow18:07:40

seemed like every time I hit Enter my code was getting replaced unexpectedly

meow18:07:41

I don't mind the tab key choosing the way it does, but does anyone else remove or change the binding on choose lookup item?

colin.yates18:07:31

my muscle memory takes me to ‘ESC’ without thinking any more. I do remember this being very jarring when I came to IntelliJ from Eclipse.

colin.yates18:07:47

Not nearly as much as the speed, consistency and stability though simple_smile.

meow18:07:54

So far I'm really liking Cursive a lot.

cfleming19:07:53

henryw374: So you only want to correct the case for do-blah-blah? If so, set the indentation for that form using the intention as described here: https://cursiveclojure.com/userguide/formatting.html. You want to set it to 0.

cfleming19:07:03

@meow: Thanks! I’m glad you’re liking it.

cfleming19:07:36

I don’t remap enter, because it performs a different action to tab. Enter adds the lookup string for the current completion at the caret, whereas tab replaces the current symbol with it.

cfleming19:07:49

Sometimes I want to insert, and sometimes I want to replace.