how can I avoid autoformatting from touching this ...
# intellij
e
how can I avoid autoformatting from touching this code?
Copy code
vertices = BufferUtils.allocateFloatAndPut(floatArrayOf(
        // Front
        -side2, -side2, side2,
        side2, -side2, side2,
        side2,  side2, side2,
        -side2,  side2, side2
))
a
you can try to adjust code style settings for the selected code fragment by using
Adjust code style settings
intention action (alt+enter on mac)
e
I dont have that..
what Idea do you have? here IntelliJ IDEA 2020.3 EAP (Ultimate Edition) Build #IU-203.5600.34, built on November 5, 2020
a
Android Studio 4.1 Build #AI-201.8743.12.41.6858069, built on September 23, 2020 BTW, alternatiively you can actually disable formatting for parts of code if that's what you're really after: https://www.jetbrains.com/help/idea/reformat-and-rearrange-code.html#exclude_part_of_code
r
There is the ability to use a start/end marker in the settings of intellij. I think per default its formatter:off/on but you need to enable it.