Skip to content

Commit

Permalink
Add info on extention methods
Browse files Browse the repository at this point in the history
  • Loading branch information
genlu committed Jul 27, 2020
1 parent 28243cc commit 0cee402
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 43 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
title: IntelliSense completion for unimported types and extension methods
description: How to use IntelliSense completion for types and extension methods that you haven't imported yet with a `using` directive.
ms.date: 03/10/2020
ms.topic: reference
author: mikadumont
ms.author: midumont
manager: jillfra
dev_langs:
- CSharp
- VB

ms.workload:
- "dotnet"
---
# IntelliSense completion for unimported types and extension methods

This refactoring applies to:

- C#

- Visual Basic

**What:** IntelliSense gives completion for unimported types and extension methods.

**When:** You want to use a type or extension methods that already has a dependency in your project but the import statement has not yet been added to your file.

**Why:** You don't have to manually add the import statement to your file.

## How-to

1. Once you start typing the name of a type or extension method that has a dependency in your project, IntelliSense will give you suggestions.
2. Press **Tab**.

The import statement will be added to your file.

![IntelliSense completion for unimported types](media/intellisense-completion-unimported-types.png)

## See also

- [Refactoring](../refactoring-in-visual-studio.md)
41 changes: 0 additions & 41 deletions docs/ide/reference/intellisense-completion-unimported-types.md

This file was deleted.

4 changes: 2 additions & 2 deletions docs/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,8 @@
href: ide/reference/extract-local-function.md
- name: Inline temporary variable
href: ide/reference/inline-temporary-variable.md
- name: IntelliSense completion unimported types
href: ide/reference/intellisense-completion-unimported-types.md
- name: IntelliSense completion unimported types and extension methods
href: ide/reference/intellisense-completion-unimported-types-and-extension-methods.md
- name: Invert conditional expressions and logical operations
href: ide/reference/invert-conditional-logical.md
- name: Invert if statement
Expand Down

0 comments on commit 0cee402

Please sign in to comment.