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/common-quick-actions.md
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -96,7 +96,7 @@ private void MyMethod()
96
96
97
97
### Make method asynchronous
98
98
99
-
When using the `await` or `Await` keyword inside of a method, it is expected that the method itself is marked with the `async` or `Async` keyword. However, if this isn't the case, a Quick Action will appear that will allow you to make the method asynchronous. Use the **Make method/Function asynchronous** option from the Quick Actions menu.
99
+
When using the `await` or `Await` keyword inside of a method, it is expected that the method itself is marked with the `async` or `Async` keyword. However, if this isn't the case, a Quick Action will appear that makes the method asynchronous. Use the **Make method/Function asynchronous** option from the Quick Actions menu.
100
100
101
101
```csharp
102
102
// Before
@@ -136,15 +136,15 @@ End Function
136
136
137
137
### Remove unnecessary usings/Imports
138
138
139
-
The **Remove Unnecessary Usings/Imports** Quick Action will remove any unused `using` and `Import` statements for the current file. When you select this item, unused namespace imports will be immediately removed.
139
+
The **Remove Unnecessary Usings/Imports** Quick Action removes any unused `using` and `Import` statements for the current file. When you select this item, unused namespace imports are removed.
140
140
141
141
| Applicable Languages | Supported Version |
142
142
| -------------------- | ---------------- |
143
143
| C# and Visual Basic | Visual Studio 2015 RTW |
144
144
145
145
### Remove unnecessary cast
146
146
147
-
If you cast a type to another type which doesn't require a cast, the **Remove Unnecessary Cast** Quick Action item will remove the cast from your code.
147
+
If you cast a type to another type which doesn't require a cast, the **Remove Unnecessary Cast** Quick Action item removes the unnecessary cast.
148
148
149
149
```csharp
150
150
// before
@@ -862,7 +862,7 @@ Dim name = customer.name
862
862
863
863
### Use inferred names
864
864
865
-
These Quick Actions point out when users can use inferred member names in anonymous types or use C# 7.1's inferred tuple element names.
865
+
This Quick Action points out when code can be simplified to use inferred member names in anonymous types, or inferred element names in tuples.
866
866
867
867
```csharp
868
868
// Before
@@ -891,7 +891,7 @@ var tuple = (age, name);
891
891
892
892
### Deconstruct tuple declaration
893
893
894
-
This Quick Action enables you to deconstruct tuple variable declarations.
894
+
This Quick Action enables deconstructing tuple variable declarations.
When using the `async` or `Async` keyword on a method, it is expected that somewhere inside that method the `await` or `Await` keyword will also be used. However, if this isn't the case, a Quick Action will appear that will allow you to make the method synchronous by removing the `async` or `Async` keyword and changing the return type. Use the **Make method synchronous** option from the Quick Actions menu.
920
+
When using the `async` or `Async` keyword on a method, it's expected that inside that method the `await` or `Await` keyword is also used. However, if this isn't the case, a Quick Action appears that makes the method synchronous by removing the `async` or `Async` keyword and changing the return type. Use the **Make method synchronous** option from the Quick Actions menu.
0 commit comments