|
1 | 1 | ---
|
2 | 2 | title: "Options, Text Editor, C#, IntelliSense | Microsoft Docs"
|
3 |
| -ms.custom: "" |
4 | 3 | ms.date: "11/04/2016"
|
5 | 4 | ms.reviewer: ""
|
6 | 5 | ms.suite: ""
|
7 |
| -ms.technology: |
8 |
| - - "vs-ide-general" |
9 |
| -ms.tgt_pltfrm: "" |
| 6 | +ms.technology: vs-ide-general |
10 | 7 | ms.topic: "article"
|
11 | 8 | f1_keywords:
|
12 | 9 | - "VS.ToolsOptionsPages.Text_Editor.CSharp.Intellisense"
|
13 |
| - - "VS.ToolsOptionsPages.Text_Editor.Visual_JSharp.Intellisense" |
14 | 10 | helpviewer_keywords:
|
15 | 11 | - "underlines, wavy"
|
16 | 12 | - "IntelliSense [C#], options"
|
17 | 13 | - "IntelliSense [C#], wavy underlines"
|
18 | 14 | - "wavy underlines"
|
19 | 15 | - "Text Editor Options dialog box, IntelliSense"
|
20 | 16 | ms.assetid: 3466dedb-e5f4-424c-8dd8-e4941b2f4fc2
|
21 |
| -caps.latest.revision: 25 |
22 | 17 | author: "gewarren"
|
23 | 18 | ms.author: "gewarren"
|
24 | 19 | manager: ghogen
|
25 | 20 | ms.workload:
|
26 | 21 | - "dotnet"
|
27 | 22 | ---
|
28 | 23 | # Options, Text Editor, C#, IntelliSense
|
29 |
| -Use the **IntelliSense** property page to modify settings that affect the behavior of IntelliSense for C#. You can access the **IntelliSense** property page by clicking **Options** on the **Tools** menu, then clicking **C#** in the **Text Editor** folder, and then clicking **IntelliSense.** |
30 |
| - |
| 24 | + |
| 25 | +Use the **IntelliSense** options page to modify settings that affect the behavior of IntelliSense for C#. To access this options page, choose **Tools** > **Options**, and then choose **Text Editor** > **C#** > **IntelliSense**. |
| 26 | + |
31 | 27 | > [!NOTE]
|
32 |
| -> The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose **Import and Export Settings** on the **Tools** menu. For more information, see [Personalize the Visual Studio IDE](../../ide/personalizing-the-visual-studio-ide.md). |
33 |
| - |
34 |
| - The **IntelliSense** property page contains the following properties: |
35 |
| - |
36 |
| -## Completion Lists |
37 |
| - **Show completion list after a character is typed** |
38 |
| - When this option is selected, IntelliSense automatically displays the completion list when you begin typing. When this option is not selected, IntelliSense completion is still available from the **IntelliSense** menu or by pressing CTRL+SPACE. |
39 |
| - |
40 |
| - **Place keywords in completion lists** |
41 |
| - When this option is selected, IntelliSense adds C# keywords, for example, [class](/dotnet/csharp/language-reference/keywords/class), to the completion list. |
42 |
| - |
43 |
| - **Place code snippets in completion lists** |
44 |
| - When this option is selected, IntelliSense adds aliases for C# code snippets to the completion list. In the case where the code snippet alias is the same as a keyword, for example, [class](/dotnet/csharp/language-reference/keywords/class), the keyword is replaced by the shortcut. For more information, see [C# Code Snippets](../../ide/visual-csharp-code-snippets.md). |
45 |
| - |
46 |
| -## Selection in Completion Lists |
47 |
| - **Committed by typing the following characters:** |
48 |
| - Specifies all characters that execute IntelliSense automatic completion for the selected item in completion list, after they are typed. |
49 |
| - |
50 |
| - **Committed by pressing the space bar** |
51 |
| - Specifies to include the action of pressing the space bar to execute IntelliSense automatic completion for the selected item in completion list. |
52 |
| - |
53 |
| - **Add new line on enter at end of fully typed word** |
54 |
| - Specifies that if you type all the characters for an entry in the completion list and then press ENTER, a new line is created automatically and the cursor moves to the new line. |
55 |
| - |
56 |
| - For example, if you type `else` and then press ENTER, the following appears in the editor: |
57 |
| - |
58 |
| - `else` |
59 |
| - |
60 |
| - `|` (cursor location) |
61 |
| - |
62 |
| - However, if you type only `el` and then press ENTER, the following appears in the editor: |
63 |
| - |
64 |
| - `else|` (cursor location) |
65 |
| - |
66 |
| -## IntelliSense Member Selection |
67 |
| - **Pre-selects most recently used member** |
68 |
| - When this option is selected, IntelliSense pre-selects the members that you have recently selected in the pop-up List Members box for automatic object name completion, during your current session in the integrated development environment (IDE). The history of most recently used members is cleared between each session in the IDE. For more information, see [IntelliSense for Most Recently Used Members](../../ide/visual-csharp-intellisense.md#most-recently-used-members). |
69 |
| - |
70 |
| -## See Also |
71 |
| - [General, Environment, Options Dialog Box](../../ide/reference/general-environment-options-dialog-box.md) |
72 |
| - [XML Documentation Comments](/dotnet/csharp/programming-guide/xmldoc/xml-documentation-comments) |
73 |
| - [Using IntelliSense](../../ide/using-intellisense.md) |
| 28 | +> The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose **Import and Export Settings** on the **Tools** menu. For more information, see [Personalize the Visual Studio IDE](../../ide/personalizing-the-visual-studio-ide.md). |
| 29 | +
|
| 30 | +The **IntelliSense** options page contains the following options: |
| 31 | + |
| 32 | +## Completion Lists |
| 33 | + |
| 34 | +- Show completion list after a character is typed* |
| 35 | + |
| 36 | + When this option is selected, IntelliSense automatically displays the completion list when you begin typing. When this option is not selected, IntelliSense completion is still available from the **IntelliSense** menu or by pressing **Ctrl**+**Space**. |
| 37 | + |
| 38 | +- Show completion list after a character is deleted |
| 39 | + |
| 40 | +- Highlight matching portions of completion list items |
| 41 | + |
| 42 | +- Show completion list filters |
| 43 | + |
| 44 | +- Show name suggestions |
| 45 | + |
| 46 | +### Snippets behavior |
| 47 | + |
| 48 | +- Never include snippets |
| 49 | + |
| 50 | + When this option is selected, IntelliSense never adds aliases for C# code snippets to the completion list. |
| 51 | + |
| 52 | +- Always include snippets |
| 53 | + |
| 54 | + When this option is selected, IntelliSense adds aliases for C# code snippets to the completion list. In the case where the code snippet alias is the same as a keyword, for example, [class](/dotnet/csharp/language-reference/keywords/class), the keyword is replaced by the shortcut. For more information, see [C# Code Snippets](../../ide/visual-csharp-code-snippets.md). |
| 55 | + |
| 56 | +- Include snippets when ?-Tab is typed after an identifier |
| 57 | + |
| 58 | + When this option is selected, IntelliSense adds aliases for C# code snippets to the completion list when **?**+**Tab** is pressed after an identifier |
| 59 | + |
| 60 | +### Enter key behavior |
| 61 | + |
| 62 | +- Never add new line on enter |
| 63 | + |
| 64 | + Specifies that a new line is never added automatically after selecting an item in the completion list and pressing **Enter**. |
| 65 | + |
| 66 | +- Only add new line on enter after end of fully typed word |
| 67 | + |
| 68 | + Specifies that if you type all the characters for an entry in the completion list and then press **Enter**, a new line is added automatically and the cursor moves to the new line. |
| 69 | + |
| 70 | + For example, if you type `else` and then press **Enter**, the following appears in the editor: |
| 71 | + |
| 72 | + `else` |
| 73 | + |
| 74 | + `|` (cursor location) |
| 75 | + |
| 76 | + However, if you type only `el` and then press **Enter**, the following appears in the editor: |
| 77 | + |
| 78 | + `else|` (cursor location) |
| 79 | + |
| 80 | +- Always add new line on enter |
| 81 | + |
| 82 | + Specifies that if you type *any* of the characters for an entry in the completion list and then press **Enter**, a new line is added automatically and the cursor moves to the new line. |
| 83 | + |
| 84 | +## See also |
| 85 | + |
| 86 | +[General, Environment, Options Dialog Box](../../ide/reference/general-environment-options-dialog-box.md) |
| 87 | +[Using IntelliSense](../../ide/using-intellisense.md) |
0 commit comments