IntelliJ idea community not automatically escaping special charactars
已回答
How can I configure Intellij to auto-escape special charactars as \" in the middle of a string?
String str= "this is a "test";
to
String str= "this is a "\test";
I am using the community version that provided this capability.
Please advise and thanks so much in advance!
请先登录再写评论。
IDE escapes such characters on paste, but not when you type.
Serge, thank you for your response, however I am pasting, however it is not working.
Please provide the screenshot of the file where you paste with the full IDE window visible.
Make sure you are using the regular paste and not Paste as Plain Text (check your keymap).
Serge, got it... thanks and it is working now
Hello, i have the same issue as Eran, couldn't fix it with the pasting, the project is working properly and it is created in Intellij Community but when imported to Ultimate it just doesn't work all of the escape chars are considered as error "Malformed string literal". how can i resolve that in the ultimate?
@Cvrstooo it sounds like some other issue. Please describe your steps, attach screenshots with actual/expected behaviour and specify the file type you are working with.
here is an little example, and this happens everywhere in the project literally, and i dont have those issues with Community edition intellij which is interesting, as i mentioned project is started from 0 in Community intellij there should be something to make the ultimate work? if it was the opposite i would understand but in community is fine and in ultimate is not? that doesn't make any sense honestly.
best regards! i hope we can figure it out.
Try Un-inject language injection action:
Ur the man! its fixed thanks a lot!