Skip to content

Update common-quick-actions.md #1363

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 8, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions docs/ide/common-quick-actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ private void MyMethod()

### Make method asynchronous

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.
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.

```csharp
// Before
Expand Down Expand Up @@ -136,15 +136,15 @@ End Function

### Remove unnecessary usings/Imports

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.
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.

| Applicable Languages | Supported Version |
| -------------------- | ---------------- |
| C# and Visual Basic | Visual Studio 2015 RTW |

### Remove unnecessary cast

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.
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.

```csharp
// before
Expand Down Expand Up @@ -862,7 +862,7 @@ Dim name = customer.name

### Use inferred names

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.
This Quick Action points out when code can be simplified to use inferred member names in anonymous types, or inferred element names in tuples.

```csharp
// Before
Expand Down Expand Up @@ -891,7 +891,7 @@ var tuple = (age, name);

### Deconstruct tuple declaration

This Quick Action enables you to deconstruct tuple variable declarations.
This Quick Action enables deconstructing tuple variable declarations.

```csharp
// Before
Expand All @@ -917,7 +917,7 @@ Console.WriteLine($"{x} {y}");

### Make method synchronous

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.
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.

```csharp
// Before
Expand Down Expand Up @@ -955,4 +955,4 @@ End Function

## See also

- [Quick Actions](../ide/quick-actions.md)
- [Quick Actions](../ide/quick-actions.md)