You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ide/cpp-linter-overview.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ When you change the check severity level, it changes how the problem is shown in
40
40
41
41
::: moniker range=">=msvc-170"
42
42
43
-

43
+

44
44
45
45
(The presentation in Visual Studio 2019 is slightly different, but the options are similar.)
1. In the **Change Signature** dialog that pops up, you can use the buttons on the right side to change the method signature:
30
29
31
-

30
+

When adding or modifying a parameter, you will see the **Add Parameter** or **Edit Parameter** window.
46
45
47
-

46
+

1. When you are finished, press the **OK** button to make the changes. Ensure that the changes you are requesting are being made appropriately. Use the checkboxes in the top half of the window to enable or disable the renaming of any item.
62
61
63
-

62
+

64
63
65
64
1. When everything looks good, click the **Apply** button and the function will be changed in your source code.
66
65
67
-

66
+

description: "Learn more about: Convert to Raw String Literal"
3
3
title: "Convert to Raw String Literal"
4
-
ms.date: "11/16/2016"
5
-
ms.assetid: fffbfee4-66ee-42ba-aeb9-df07fb702c51
4
+
ms.date: "09/19/2022"
6
5
---
7
6
# Convert to Raw String Literal
8
7
9
-
**What:**Lets you turn any string into a C++ raw string literal.
8
+
**What:**Turn any string into a C++ raw string literal.
10
9
11
10
**When:** You have a string with escaped characters which shouldn't be processed as escaped characters.
12
11
13
-
**Why:** You could double-escape characters, but this often leads to confusing and unreadable strings. Using raw string literals makes strings much easier to read.
12
+
**Why:** You could double-escape characters, but this often leads to confusing and strings. Raw string literals makes strings much easier to read.
14
13
15
14
**How:**
16
15
17
16
1. Place text or mouse cursor over the escaped string to convert.


1. The function's declaration/definition will be created in the source or header file, which you will see in a popup preview window. If the source or header file does not exist, it will also be created and placed in the project.

**What:**Lets you turn a fragment of code into its own function.
8
+
**What:**Turn a fragment of code into its own function.
10
9
11
10
**When:** You have a fragment of existing code in some function that needs to be called from another function.
12
11
13
-
**Why:** You could copy/paste that code, but that would lead to duplication. A better solution is to refactor that fragment into its own function which can be called freely by any other function.
12
+
**Why:** You could copy/paste that code, but that would lead to duplication. A better solution is to refactor that fragment into its own function which can be called by any other function.

1. In the **Extract Function/Method (Experimental)** window, enter the new function name, select where you want the code to be placed, and click the **OK** button.
31
30
32
-

31
+

33
32
34
33
1. The new function will be created where you specified, a function prototype in the corresponding header file, and the original code will be changed to call that function.
35
34
36
-

35
+


1. The pure virtual method signatures will be created automatically, ready to be implemented.
28
27
29
-

28
+

1. The function will be moved to the corresponding header file, which you will see in a popup preview window. If the header file does not exist, it will also be created and placed in the project.
**What:**Lets you rename identifiers for code symbols, such as fields, local variables, methods, namespaces, properties and types.
8
+
**What:**Rename identifiers for code symbols such as fields, local variables, methods, namespaces, properties and types.
10
9
11
10
**When:** You want to safely rename something without having to find all instances, and copy/paste the new name.
12
11
13
-
**Why:** Copy and pasting the new name across an entire project would likely result in errors. This refactoring tool will accurately perform the renaming action.
12
+
**Why:** Copy and pasting the new name across an entire project could result in errors. This feature accurately performs the rename.
14
13
15
14
**How:**
16
15
17
16
1. Highlight or place the text cursor inside the item to be renamed:
1. In the **Rename** window that pops up, enter the new name for the selected item and click the **Preview** button. Change the **Search scope** if you need to widen or narrow the scope of the renaming.
29
28
30
-

29
+

31
30
32
31
> [!TIP]
33
32
> You can skip the preview by checking the **Skip preview changes if references are all confirmed** option.
34
33
35
34
1. When the **Preview Changes - Rename** window appears, ensure that the changes you are requesting are being made appropriately. Use the checkboxes in the top half of the window to enable or disable the renaming of any item.
36
35
37
-

36
+

38
37
39
38
1. When everything looks good, click the **Apply** button and the item will be renamed in your source code.
0 commit comments