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/reference/find-in-files-command.md
+10-7Lines changed: 10 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -19,14 +19,14 @@ monikerRange: "<=vs-2019"
19
19
Search files using a subset of the options available on the **Find in Files** tab of the **Find and Replace** window.
20
20
21
21
> [!IMPORTANT]
22
-
> Support for this command was removed in version 16.5 of Visual Studio 2019, and restored in version 17.12 of Visual Studio 2022. If you use this command with versions 16.5-17.11, you might see an error message that says, *Command "Edit.FindinFiles" does not accept arguments or switches.*
22
+
> Support for this command was removed in version 16.5 of Visual Studio 2019, and restored in version 17.12 of Visual Studio 2022. If you use this command with versions 16.5-17.11, you might see an error message that says, *Command "Edit.FindinFiles" does not accept arguments or switches.* Some options have been changed in Visual Studio 2022.
@@ -40,6 +40,10 @@ Required. The text to substitute for the matched text.
40
40
41
41
Optional. Replaces all occurrences of the search text with the replacement text.
42
42
43
+
/append (new in Visual Studio 2022)
44
+
45
+
Optional. Directs the results from the current search to be appended to previous search results.
46
+
43
47
/case or /c
44
48
45
49
Optional. Matches occur only if when the uppercase and lowercase characters exactly match those specified in the `findwhat` argument.
@@ -48,7 +52,7 @@ Optional. Matches occur only if when the uppercase and lowercase characters exac
48
52
49
53
Optional. Specifies the file extensions for the files to be searched.
50
54
51
-
/keep or /k
55
+
/keep or /k (not supported in Visual Studio 2022)
52
56
53
57
Optional. Specifies that all modified files are left open.
54
58
@@ -60,6 +64,10 @@ Optional. Directory to search. If the path contains spaces, enclose the entire p
60
64
61
65
Optional. Displays a list of the current find option settings and does not perform a search.
62
66
67
+
/preserveCase (new in Visual Studio 2022)
68
+
69
+
Optional. Preserves the original casing of each match in your code.
70
+
63
71
/regex or /r
64
72
65
73
Optional. Uses pre-defined special characters in the `findwhat` argument as notations that represent patterns of text rather than the literal characters. For a complete list of regular expression characters, see [Regular Expressions](../../ide/using-regular-expressions-in-visual-studio.md).
@@ -80,11 +88,11 @@ Optional. Halts the current search operation if one is in progress. Replace igno
80
88
81
89
Optional. Searches the subfolders within the directory specified in the /lookin:`searchpath` argument.
82
90
83
-
/text2 or /2
91
+
/text2 or /2 (not supported in Visual Studio 2022)
84
92
85
93
Optional. Displays the results of the replacement in the **Find Results 2** window.
86
94
87
-
/wild or /l
95
+
/wild or /l (not supported in Visual Studio 2022)
88
96
89
97
Optional. Uses pre-defined special characters in the `findwhat` argument as notations to represent a character or sequence of characters.
0 commit comments