How can I insert tabs inside mulitline string?

Answered

If I press Tab while inside mulitline string the cursor instead just jumps to the beginning of the first line 

 

std::string str =
"blabla<need tab here >:bla-bla\n"
"bla<need tab here too>:bla-bla\n";

 

0
3 comments

Hello.

 

Could you please clarify OS version you are running on and Keymap settings (go to *Preferences | Keymap*)?

0

Ubuntu 19.04

It is actually different code:

if (bla)
throw a(
"bla"
"bla2\n"
);

Set cursor on any place in the strings and pres Tab - it will jump to the position before opening quote of string "bla"

0

Thanks for additional information. We have a problem with inserting tab inside string literal in function call. You case is described here https://youtrack.jetbrains.com/issue/CPP-16826

Please follow and feel free to write down a comment if you familiar with YourTrack.

 

Regards,

Maxim

0

Please sign in to leave a comment.