C# @“” how do i insert a tab?

后端 未结 12 1117
南笙
南笙 2021-01-17 08:02

Recently i found out i can write in a \" by writing two \" ex @\"abc\"\"def\". I find the @ string literal useful. But how do i write in a tab or n

12条回答
  •  攒了一身酷
    2021-01-17 08:22

    When using the @ syntax, all character escapes are disabled. So to get a tab or a newline you will have to insert a literal TAB or a newline. It's easy - just hit the TAB or ENTER button on your keyboard. Note, that you might need to change the behavior of TAB ir Visual Studio if it is set to enter spaces instead of literal TAB characters.

提交回复
热议问题