Typing \n [space] in side a string literal inserts /*no-op*/

Answered

If I were to type a string literal "hello \n ", as soon as I type \n, no-op is automatically selected in the auto-complete, and then if I continue to press the spacebar, no-op is inserted. I could pause after typing \n and press ESC to disable this, but is this an intended behaviour? Do many people need to type no-op inside of a string literal?

To be honest, I am using Android Studio, but since it is basically IntelliJ and Google probably does not make this part of the IDE, I thought it may be more suitable to ask this to IntelliJ developers and maintainers.

0
3 comments

Hi - I can't reproduce this in IntelliJ IDEA with a random Kotlin file.

If you still see this issue with all downloaded plugins disabled, it is best to file it to the Android Studio's own issue tracker: https://developer.android.com/studio/report-bugs

0

It was caused by the "String Manipulation" plugin. I had installed it a long time ago, because it seemed to be popular (2.4M downloads) and forgot about it. I am sorry for that.

1

No worries at all. Good to know the issue is resolved.

0

Please sign in to leave a comment.