Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
What: Turn any string into a C++ raw string literal.
When: You have a string with escaped characters, which shouldn't be processed as escaped characters.
Why: You could double-escape characters, but this often leads to confusing and strings. Raw string literals make strings much easier to read.
How:
Place text or mouse cursor over the escaped string to convert.
Next, do one of the following:
- Keyboard
- Press Ctrl+. to trigger the Quick Actions and Refactorings menu and select Convert to Raw String Literal from the context menu.
- Mouse
- Right-click the code, select the Quick Actions and Refactorings menu and select Convert to Raw String Literal from the context menu.
- Click the
icon that appears in the left margin and select Convert to Raw String Literal from the context menu.
- Keyboard
The string will be immediately converted into a raw string literal.