intellij-elixir icon indicating copy to clipboard operation
intellij-elixir copied to clipboard

Align and indent none relative to call for assert when last argument wraps

Open DenisGorbachev opened this issue 8 years ago • 3 comments

Hey, thanks for the plugin, it's very helpful!

However, there's one issue: it messes up the indentation after pasting the code.

Before:

image

After:

image

Expected:

image

Currently, we have to correct the indentation manually, which adds up to quite a lot of time. How hard is it to fix this?

DenisGorbachev avatar Sep 23 '17 10:09 DenisGorbachev

I have no idea how to turn off the formatter from running when you paste. It's probably easier to just make the formatter configurable for the style you want since it solves the first problem of you having to manually adjust the formatting to the style you prefer.

KronicDeth avatar Sep 23 '17 15:09 KronicDeth

That would be great!

Actually, the formatter works kind of randomly: image

What could be the source of this issue? (see screenshot)

DenisGorbachev avatar Sep 23 '17 18:09 DenisGorbachev

This week as I’ve been using it I’ve been seeing pastes indented as far as 80 characters. I’ve had to use paste without formatting to get any work done.

Also, pasting and certain line breaks indent an odd number of spaces. It makes my eyelid twitch every time. Who. What. The only thing that 2-space, 4-space and tab indenters can see eye to eye on is that three space people must be destroyed.

I’m assuming this is an off by one error somewhere in the code.

jdmarshall avatar Mar 19 '24 06:03 jdmarshall