https://kotlinlang.org logo
#intellij
Title
# intellij
r

ribesg

01/12/2019, 4:57 PM
I’ve got a small problem with IntelliJ, it looks like it’s auto-saving every time I write a single character, but I have it set to auto format on save. So when I hit tab to indent an empty line to write something, it immediately saves and removes my indent... Any idea if I can fix this without removing formatting on Cmd+S?
c

Czar

01/12/2019, 5:00 PM
Please check the channel topic.
s

Shawn

01/12/2019, 5:01 PM
You might want to move over to #random - folks in here try to stick to the channel topic, which is the Kotlin plugin for Idea specifically
r

ribesg

01/12/2019, 5:02 PM
Well this only happens in .kt files, not in html, js, json or sass files at least
c

Czar

01/12/2019, 5:02 PM
In that case you're in the the right place, it was just not mentioned in your message 🙂
r

ribesg

01/12/2019, 5:03 PM
Well actually I’m not 100% sure about that, sure it only happens in Kotlin files, but does that make it obviously related to the Kotlin plugin? Has the Kotlin plugin something to do with wild reformatting?
s

Shawn

01/12/2019, 5:03 PM
Does it happen only in scratch files?
r

ribesg

01/12/2019, 5:05 PM
Currently in my Main.kt, it looks like it only happens outside of classes / objects
I can 100% reproduce it just by writing
fun main() {
then hit enter and tab. It removes the 4 spaces
c

Czar

01/12/2019, 5:07 PM
How do you enable format on save? I want to check if mine's doing the same.