title | description | ms.date | ms.topic | author | ms.author | manager | ms.subservice | dev_langs | |
---|---|---|---|---|---|---|---|---|---|
Convert between regular and verbatim string literals |
Learn how to use the Quick Actions and Refactorings menu to convert between regular string and verbatim string literals. |
06/08/2020 |
reference |
mikadumont |
midumont |
mijacobs |
general-ide |
|
This refactoring applies to:
- C#
What: Lets you convert between regular string and verbatim string literals.
When: You either want to save space or provide more clarity in your code.
Why: Converting a verbatim string literal to a regular string literal can help save space. Converting a regular string literal to a verbatim string literal can provide more clarity.
-
Place your caret on either the regular string or verbatim string literal:
-
Press Ctrl+. to trigger the Quick Actions and Refactorings menu.
-
Select from one of the following options:
Select Convert to regular string.
Select Convert to verbatim string.