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
Use these property pages to change the default behavior of the code editor when you are programming in C or C++.
20
+
21
+
To access this property page, choose **Tools** > **Options** and expand **Text Editor**, then **C/C++**, and then choose **View**.
22
+
23
+
> [!NOTE]
24
+
> Your computer might show different names or locations for some of the Visual Studio user interface elements in the following instructions. The Visual Studio edition that you have and the settings that you use determine these elements. See [Personalize the Visual Studio IDE](../../ide/personalizing-the-visual-studio-ide.md).
25
+
26
+
## Code Squiggles
27
+
28
+
You can enable or disable the following settings to manage the way in which text editor handles code squiggles for C and C++:
29
+
30
+
-**Macros in Skipped Browsing Regions** - Defines how to highlight macros that are inside skipped regions by the browsing database, such as macros whose definitions include braces.
31
+
32
+
-**Macros Convertible to constexpr** - Defines how to highlight macro definitions that can be converted to `constexpr` definitions.
33
+
34
+
## Inactive Code
35
+
36
+
-**Show Inactive Blocks** - Preprocessor inactive blocks are colorized differently.
37
+
38
+
-**Disable Inactive Code Opacity** - A solid color, instead of opacity, is used for inactive code blocks.
39
+
40
+
-**Inactive Code Opacity Percent** - The percentage of opacity for inactive code blocks.
41
+
42
+
## Miscellaneous
43
+
44
+
-**Enumerate Comment Tasks** - Scan open source files for VS tokens and report them in the Task List window.
45
+
46
+
-**Highlight Matching Tokens** - Highlight enclosing braces or syntax that match where the cursor is positioned.
47
+
48
+
## Outlining
49
+
50
+
-**Enable Outlining** - Enter outlining mode when a file opens.
51
+
52
+
-**Outline Pragma Regions** - Automatically outline `#pragma` region blocks.
Copy file name to clipboardExpand all lines: docs/ide/reference/options-text-editor-csharp-advanced.md
+15-4Lines changed: 15 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Options, Text Editor, C#, Advanced
3
-
ms.date: 11/04/2016
3
+
ms.date: 10/29/2018
4
4
ms.prod: visual-studio-dev15
5
5
ms.technology: vs-ide-general
6
6
ms.topic: reference
@@ -30,7 +30,7 @@ Use the **Advanced** options page to modify the settings for editor formatting,
30
30
31
31
- Place 'System' directives first when sorting usings
32
32
33
-
When selected, the **Remove and Sort Usings** command in the right-click menu sorts the `using` directives and places the 'System' namespaces at the top of the list
33
+
When selected, the **Remove and Sort Usings** command in the right-click menu sorts the `using` directives and places the 'System' namespaces at the top of the list.
34
34
35
35
Before sorting:
36
36
@@ -83,9 +83,10 @@ Use the **Advanced** options page to modify the settings for editor formatting,
83
83
usingSystem.Linq;
84
84
```
85
85
86
-
- Add usings for types in reference assemblies and NuGet packages
86
+
- Suggest usings for types in reference assemblies
87
+
- Suggest usings for types in NuGet packages
87
88
88
-
When selected, a [Quick Action](../quick-actions.md) is available to install a NuGet package and add a `using` directive for unreferenced types.
89
+
When these options are selected, a [Quick Action](../quick-actions.md) is available to install a NuGet package and add a `using` directive for unreferenced types.
89
90
90
91

91
92
@@ -101,6 +102,16 @@ Use the **Advanced** options page to modify the settings for editor formatting,
101
102
102
103
When selected, automatically outlines the code file, which creates collapsible blocks of code. The first time a file is opened, #regions blocks and inactive code blocks collapse.
103
104
105
+
- Show procedure line separators
106
+
107
+
The text editor indicates visual scope of procedures. A line is drawn in the *.vb* source files of your project at locations listed in the following table:
108
+
109
+
|Location in .vb Source File|Example of Line Location|
|After the close of a block declaration construct|- At the end of a class, structure, module, interface, or enum<br />- After a property, function, or sub<br />- Not between the get and set clauses in a property|
112
+
|After a set of single line constructs|- After the import statements, before a type definition in a class file<br />- After variables declared in a class, before any procedures|
113
+
|After single line declarations (non-block level declarations)|- Following import statements, inherits statements, variable declarations, event declarations, delegate declarations, and DLL declare statements|
Copy file name to clipboardExpand all lines: docs/ide/reference/options-text-editor-csharp-intellisense.md
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -38,11 +38,9 @@ The **IntelliSense** options page contains the following options:
38
38
39
39
- Highlight matching portions of completion list items
40
40
41
-
- Show completion list filters
41
+
- Show completion item filters
42
42
43
-
- Show name suggestions
44
-
45
-
### Snippets behavior
43
+
## Snippets behavior
46
44
47
45
- Never include snippets
48
46
@@ -56,7 +54,7 @@ The **IntelliSense** options page contains the following options:
56
54
57
55
When this option is selected, IntelliSense adds aliases for C# code snippets to the completion list when **?**+**Tab** is pressed after an identifier
58
56
59
-
###Enter key behavior
57
+
## Enter key behavior
60
58
61
59
- Never add new line on enter
62
60
@@ -80,6 +78,10 @@ The **IntelliSense** options page contains the following options:
80
78
81
79
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.
82
80
81
+
## Show name suggestions
82
+
83
+
Performs automatic object name completion for the members that you have recently selected.
# Options, Text Editor, JavaScript, Code Validation
16
+
Use the **Code Validation** page of the **Options** dialog box to modify settings that affect the way that JavaScript handles errors. You can access the **Code Validation** page by choosing **Tools** > **Options** on the menu bar, and then expanding **Text Editor** > **JavaScript** > **Code Validation.**
The **Code Validation** page contains the following sections:
21
+
22
+
## JavaScript Errors
23
+
You can use these options to set preferences for how the JavaScript editor validates syntax in your document.
24
+
25
+
### UIElement List
26
+
**Enable JavaScript errors**
27
+
28
+
When set to **True**, the JavaScript code editor shows errors for JavaScript and JSX files. Errors appear in the **Error List** with a (JS) prefix. Viewing these errors is useful if you're working with code that you didn't write and you don't intend to fix syntax errors.
29
+
30
+
**Show errors as warnings**
31
+
32
+
When set to **True**, JavaScript errors are shown as warnings instead of errors in the **Error List**.
Copy file name to clipboardExpand all lines: docs/ide/reference/options-text-editor-javascript-formatting.md
+7-6Lines changed: 7 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Options, Text Editor, JavaScript, Formatting
3
-
ms.date: 11/04/2016
3
+
ms.date: 10/29/2018
4
4
ms.prod: visual-studio-dev15
5
5
ms.technology: vs-ide-general
6
6
ms.topic: reference
@@ -26,19 +26,20 @@ Use the **Formatting** page of the **Options** dialog box to set options for for
26
26
## Automatic Formatting
27
27
These options determine when formatting occurs in **Source** view.
28
28
29
-
## UIElement List
29
+
###UIElement List
30
30
31
31
|Option|Description|
32
32
|------------|-----------------|
33
33
|**Format completed line on Enter**|When this option is selected, the Code Editor automatically formats the line when you choose the Enter key.|
34
34
|**Format completed statement on ;**|When this option is selected, the Code Editor automatically formats the line when you choose the semicolon key.|
35
+
|**Format opened block on {**|When this option is selected, the Code Editor automatically formats the line when you choose the opening brace key.|
35
36
|**Format completed block on }**|When this option is selected, the Code Editor automatically formats the line when you choose the closing brace key.|
36
37
|**Format on paste**|When this option is selected, the Code Editor reformats code when you paste it into the editor. The editor uses the currently defined formatting rules. If this option is not selected, the editor uses the original formatting of the pasted-in code.|
37
38
38
39
## New Lines
39
40
These options determine whether the Code Editor puts an open brace for functions and control blocks on a new line.
40
41
41
-
## UIElement List
42
+
###UIElement List
42
43
43
44
|Option|Description|
44
45
|------------|-----------------|
@@ -48,15 +49,15 @@ Use the **Formatting** page of the **Options** dialog box to set options for for
48
49
## Spacing
49
50
These options determine how spaces are inserted in **Source** view.
50
51
51
-
## UIElement List
52
+
###UIElement List
52
53
53
54
|Option|Description|
54
55
|------------|-----------------|
55
56
|**Insert space after comma delimiter**|When this option is selected, the Code Editor adds a space after comma delimiters.|
56
-
|**Insert space after semicolon in 'for' statement**|When this option is selected, the Code Editor adds a space after each semicolon in the first line of a `for` loop.|
57
+
|**Insert space after semicolon in 'for' statements**|When this option is selected, the Code Editor adds a space after each semicolon in the first line of a `for` loop.|
57
58
|**Insert space before and after binary operators**|When this option is selected, the Code Editor adds a space before and after binary operators (for example, +, -, &&, ||).|
58
59
|**Insert space after keywords in control flow statements**|When this option is selected, the Code Editor adds a space after JavaScript keywords in control flow statements.|
59
-
|**Insert space after function keyword for anonymous functions.**|When this option is selected, the Code Editor adds a space after the `function` keyword for anonymous functions.|
60
+
|**Insert space after function keyword for anonymous functions**|When this option is selected, the Code Editor adds a space after the `function` keyword for anonymous functions.|
60
61
|**Insert space after opening and before closing non-empty parenthesis**|When this option is selected, the Code Editor adds a space after the opening parenthesis and before the closing parenthesis if non-empty characters are present within the parentheses.|
title: Options, Text Editor, JavaScript, IntelliSense
3
-
ms.date: 11/04/2016
3
+
ms.date: 10/29/2018
4
4
ms.prod: visual-studio-dev15
5
5
ms.technology: vs-ide-general
6
6
ms.topic: reference
@@ -16,46 +16,24 @@ ms.workload:
16
16
- "multiple"
17
17
---
18
18
# Options, Text Editor, JavaScript, IntelliSense
19
-
Use the **IntelliSense** page of the **Options** dialog box to modify settings that affect the behavior of IntelliSense for JavaScript. You can access the **IntelliSense** page by choosing **Tools**, **Options** on the menu bar, and then expanding **Text Editor**, **JavaScript**,**IntelliSense.**
19
+
Use the **IntelliSense** page of the **Options** dialog box to modify settings that affect the behavior of IntelliSense for JavaScript. You can access the **IntelliSense** page by choosing **Tools** > **Options** on the menu bar, and then expanding **Text Editor** > **JavaScript** >**IntelliSense.**
The **IntelliSense** page contains the following sections:
24
24
25
-
## Validation
26
-
You can use these options to set preferences for how the JavaScript editor validates syntax in your document.
27
-
28
-
## UIElement List
29
-
**Show syntax errors**
30
-
31
-
When this check box is not selected, the JavaScript code editor does not show syntax errors. This is useful if you are working with code that you didn't write and you don't intend to fix syntax errors.
32
-
33
-
When this check box is selected, you have the option to select the **Show errors as warning** check box.
34
-
35
-
**Show errors as warnings**
36
-
37
-
When this check box is selected, JavaScript errors are shown as warnings instead of errors in the error list.
38
-
39
-
**Download remote references (e.g. http://) for files in the miscellaneous files project**
40
-
41
-
When this check box is selected, and if you have a JavaScript file opened outside the context of a project, Visual Studio will download remote JavaScript files referenced in the file for the purpose of providing IntelliSense information. If this option is selected, files will download when you include them as a reference in your JavaScript file.
42
-
43
-
> [!NOTE]
44
-
> For web projects, remote files referenced in your project are downloaded by default.
45
-
46
-
47
25
## Statement Completion
48
26
You can use these options to change the behavior of IntelliSense statement completion.
49
27
50
-
## UIElement List
51
-
**Only use tab or enter to commit**
28
+
###UIElement List
29
+
**Only use Tab or Enter to commit**
52
30
53
-
When this check box is selected, the JavaScript code editor appends statements with items selected in the completion list only after you choose the Tab or Enter key. When this check box is not selected, other characters, such as a period, comma, colon, open parenthesis, and open brace ({), can also append statements with the selected items.
31
+
When you select this check box, the JavaScript code editor appends statements with items selected in the completion list only after you choose the **Tab** or **Enter** key. When you deselect this check box, other characters – such as a period, comma, colon, open parenthesis, and open brace ({) – can also append statements with the selected items.
54
32
55
33
## References
56
34
You can use these options to specify the types of IntelliSense .js files that are in scope for different JavaScript project types. The IntelliSense references are typically used to provide IntelliSense support for global objects. You can also use this page to set the loading order for scripts that must be loaded at run time, and to add IntelliSense extension files.
57
35
58
-
## UIElement List
36
+
###UIElement List
59
37
**Reference groups**
60
38
61
39
This option specifies the reference group type. Three reference groups are supported:
@@ -82,6 +60,15 @@ This option specifies the order in which files are loaded into the context of th
82
60
83
61
This option provides a way to add additional IntelliSense .js files by browsing to the appropriate files.
84
62
63
+
**Download remote references (e.g. http://) for files in the miscellaneous files project**
64
+
65
+
When this check box is selected, and if you have a JavaScript file opened outside the context of a project, Visual Studio downloads remote JavaScript files referenced in the file for the purpose of providing IntelliSense information. If this option is selected, files are downloaded when you include them as a reference in your JavaScript file.
66
+
67
+
> [!NOTE]
68
+
> For web projects, remote files referenced in your project are downloaded by default.
0 commit comments