From 0cee402359a99a7a68b5d2498b38f8375af61d6d Mon Sep 17 00:00:00 2001 From: Gen Lu Date: Mon, 27 Jul 2020 12:31:22 -0700 Subject: [PATCH] Add info on extention methods --- ...-unimported-types-and-extension-methods.md | 41 +++++++++++++++++++ ...ntellisense-completion-unimported-types.md | 41 ------------------- docs/toc.yml | 4 +- 3 files changed, 43 insertions(+), 43 deletions(-) create mode 100644 docs/ide/reference/intellisense-completion-unimported-types-and-extension-methods.md delete mode 100644 docs/ide/reference/intellisense-completion-unimported-types.md diff --git a/docs/ide/reference/intellisense-completion-unimported-types-and-extension-methods.md b/docs/ide/reference/intellisense-completion-unimported-types-and-extension-methods.md new file mode 100644 index 00000000000..70836b4c99a --- /dev/null +++ b/docs/ide/reference/intellisense-completion-unimported-types-and-extension-methods.md @@ -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) diff --git a/docs/ide/reference/intellisense-completion-unimported-types.md b/docs/ide/reference/intellisense-completion-unimported-types.md deleted file mode 100644 index 131dfec3b8a..00000000000 --- a/docs/ide/reference/intellisense-completion-unimported-types.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: IntelliSense completion for unimported types -description: How to use IntelliSense completion for types 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 - -This refactoring applies to: - -- C# - -- Visual Basic - -**What:** IntelliSense gives completion for unimported types. - -**When:** You want to add a type 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 using a type 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) diff --git a/docs/toc.yml b/docs/toc.yml index 658d6883533..b062c47fc27 100644 --- a/docs/toc.yml +++ b/docs/toc.yml @@ -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