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
Copy file name to clipboardExpand all lines: docs/python/overview-of-python-tools-for-visual-studio.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -42,17 +42,17 @@ For more information:
42
42
43
43
## Rich editing, IntelliSense, and code comprehension
44
44
45
-
Visual Studio provides a first-class Python editor, including syntax coloring, auto-complete across all your code and libraries, code formatting, signature help, refactoring, linting (shown below), and type hints. Visual Studio also provides unique features like class view, Go to Definition, Find All References, and code snippets. Direct integration with the [Interactive Window](#interactive-window) helps you quickly develop Python code that's already saved in a file.
45
+
Visual Studio provides a first-class Python editor, including syntax coloring, auto-complete across all your code and libraries, code formatting, signature help, refactoring, linting, and type hints. Visual Studio also provides unique features like class view, Go to Definition, Find All References, and code snippets. Direct integration with the [Interactive Window](#interactive-window) helps you quickly develop Python code that's already saved in a file.
46
46
47
47

48
48
49
49
For more information:
50
50
51
51
- Video (2m 30s): [Editing Python code](https://mva.microsoft.com/en-US/training-courses/python-tools-for-visual-studio-2017-18121?l=r2iQH5LWE_4605918567)
Copy file name to clipboardExpand all lines: docs/rtvs/linting-r-code.md
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Linting R code
3
-
description: How to work with Visual Studio's build-in linting support for R, including linting options.
3
+
description: How to work with Visual Studio's build-in linting support for R, including linter options.
4
4
ms.date: 01/15/2018
5
5
ms.prod: visual-studio-dev15
6
6
ms.technology: vs-rtvs
@@ -14,31 +14,31 @@ ms.workload:
14
14
- data-science
15
15
---
16
16
17
-
# Linting R code in Visual Studio
17
+
# Lint R code in Visual Studio
18
18
19
-
Linting analyzes code to reveal potential errors, formatting issues, and other code noise such as spurious whitespace. Linting also helps encourage certain coding conventions, such as how identifiers are named. Such conventions are helpful within teams and other collaborative situations.
19
+
A linter analyzes code to reveal potential errors, formatting issues, and other code noise such as spurious whitespace. Using a linter also helps encourage certain coding conventions, such as how identifiers are named. Such conventions are helpful within teams and other collaborative situations.
20
20
21
-
R Tools for Visual Studio (RTVS) provides built-in linting for R, the behavior of which is controlled through a variety of options described in this article. These options are found in **Tool > Options > Text Editor > R > Lint**.
21
+
R Tools for Visual Studio (RTVS) provides a built-in linter for R, the behavior of which is controlled through a variety of options described in this article. These options are found in **Tool > Options > Text Editor > R > Lint**.
22
22
23
-
Linting is disabled by default. To enable linting, set the **All > Enable lint** option to true.
23
+
The lint is disabled by default. To enable the lint, set the **All > Enable lint** option to true.
24
24
25
-
When enabled, linting is applied in the editor while you type. Issues appear as green squiggles. In the following graphic, for example, RTVS has identified six linting issues, including use of `=` instead of `<-` for an assignment, lack of spacing around function arguments, use of Pascal case and uppercase identifiers, and use of a semicolon. Hovering over an issue provides a description.
25
+
When enabled, the linter run in the editor while you type. Issues appear as green squiggles. In the following graphic, for example, RTVS has identified six lint issues, including use of `=` instead of `<-` for an assignment, lack of spacing around function arguments, use of Pascal case and uppercase identifiers, and use of a semicolon. Hovering over an issue provides a description.
26
26
27
-

27
+

28
28
29
-
You often change linting options depending on the needs of a project or file. For example, sample code from an online course might use `=` instead of `<-` along with Pascal-case identifiers. Such code would show frequent linting warnings because the default linting options flag these cases. While working with that code, then, you can disable the options instead of spending time correcting each instance.
29
+
You often change linter options depending on the needs of a project or file. For example, sample code from an online course might use `=` instead of `<-` along with Pascal-case identifiers. Such code would show frequent linter warnings because the default linter options flag these cases. While working with that code, then, you can disable the options instead of spending time correcting each instance.
30
30
31
31
## Assignment group
32
32
33
-
| Option | Default value |Linting effect |
33
+
| Option | Default value |Lint effect |
34
34
| --- | --- | --- |
35
35
| Enforce \<- |`True`| Identifies when `<-` isn't used for assignment. |
36
36
37
37
## Naming group
38
38
39
39
These options flag identifiers that use different naming conventions:
40
40
41
-
| Option | Default value |Linting effect |
41
+
| Option | Default value |Lint effect |
42
42
| --- | --- | --- |
43
43
| Flag camelCase |`False`| Flags identifiers that use camelCase. |
44
44
| Flag long names |`False`| Flags identifiers whose named exceed the "Max name length" setting. |
@@ -54,14 +54,14 @@ These options, all of which are set to `True` by default, control where the lint
54
54
55
55
## Statements group
56
56
57
-
| Option | Default value |Linting effect |
57
+
| Option | Default value |Lint effect |
58
58
| --- | --- | --- |
59
59
| Multiple |`True`| Identifies when multiple statements are on the same line. |
60
60
| Semicolons |`True`| Identifies uses of semicolons. |
61
61
62
62
## Text group
63
63
64
-
| Option | Default value |Linting effect |
64
+
| Option | Default value |Lint effect |
65
65
| --- | --- | --- |
66
66
| Line length limit |`False`| Sets whether the linter flags lines longer than the "Max line length" option. |
67
67
| Max line length | 80 | Sets the line length applied by the "Line length limit" option. |
Copy file name to clipboardExpand all lines: docs/rtvs/options-for-r-tools-in-visual-studio.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ Settings are accessed through the **R Tools** > **Options** menu, or through **T
26
26
Options and settings specific to R are accessed using the methods below. You must select the **Show all settings** box at the bottom of the **Options** dialog box for all of these sections to appear.
27
27
28
28
- Code formatting options (see [Editor options](editing-r-code-in-visual-studio.md#editor-options): **Tools** > **Options** menu, then select **Text Editor** > **R** > **Formatting**
29
-
-Linting options (see [Linting](linting-r-code.md)): **Tools** > **Options** menu, then select **Text Editor** > **R** > **Lint**
29
+
-Linter options (see [Linting](linting-r-code.md)): **Tools** > **Options** menu, then select **Text Editor** > **R** > **Lint**
30
30
- Advanced editor options ([described in this article](#text-editor--r--advanced-options)): **Tools** > **Options** menu, then select **Text Editor** > **R** > **Advanced**
31
31
- Behavioral options ([described in this article](#r-tools--advanced-options)): **R Tools** > **Options** menu, or **Tools** > **Options**, then scroll to **R Tools**.
0 commit comments