Skip to content

Commit 72c9545

Browse files
committed
2 parents d6434b5 + 09bc671 commit 72c9545

File tree

406 files changed

+4133
-2333
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

406 files changed

+4133
-2333
lines changed

.openpublishing.publish.config.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
],
104104
"notification_subscribers": [],
105105
"branches_to_filter": [],
106-
"git_repository_url_open_to_public_contributors": "https://github.com/Microsoft/visualstudio-docs",
106+
"git_repository_url_open_to_public_contributors": "https://github.com/MicrosoftDocs/visualstudio-docs",
107107
"git_repository_branch_open_to_public_contributors": "master",
108108
"skip_source_output_uploading": false,
109109
"need_preview_pull_request": true,
@@ -129,11 +129,7 @@
129129
]
130130
},
131131
"need_generate_pdf_url_template": true,
132-
"targets": {
133-
"Pdf": {
134-
"template_folder": "_themes.pdf"
135-
}
136-
},
132+
"targets": {},
137133
"need_generate_pdf": false,
138134
"need_generate_intellisense": false
139135
}

.openpublishing.redirection.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -925,6 +925,11 @@
925925
"redirect_url": "/visualstudio/ide/visual-studio-ide",
926926
"redirect_document_id": false
927927
},
928+
{
929+
"source_path": "docs/ide/getting-started-with-debugging-in-visual-studio.md",
930+
"redirect_url": "/visualstudio/ide/find-and-fix-code-errors",
931+
"redirect_document_id": false
932+
},
928933
{
929934
"source_path": "docs/ide/get-started-with-visual-studio.md",
930935
"redirect_url": "/visualstudio/ide/visual-studio-ide",

docs/TOC.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
### [Create an offline installation of Visual Studio](install/create-an-offline-installation-of-visual-studio.md)
1010
### [Install required certificates for offline installation](install/install-certificates-for-visual-studio-offline.md)
1111
### [Install on low-bandwidth or unreliable network environments](install/install-vs-inconsistent-quality-network.md)
12+
## [Change installation locations](install/change-installation-locations.md)
1213
## [Troubleshooting installation issues](install/troubleshooting-installation-issues.md)
1314
## [Update Visual Studio](install/update-visual-studio.md)
1415
## [Modify Visual Studio](install/modify-visual-studio.md)
@@ -62,7 +63,7 @@
6263
## [Node.js in Visual Studio](nodejs/tutorial-nodejs.md)
6364
## [C# in Visual Studio](ide/tutorial-csharp-aspnet-core.md)
6465
## [Visual Basic in Visual Studio](ide/tutorial-visual-basic-console.md)
65-
## [Debugging in Visual Studio](ide/getting-started-with-debugging-in-visual-studio.md)
66+
## [Debugging in Visual Studio](debugger/getting-started-with-the-debugger.md?context=visualstudio/default)
6667
# How-to guides
6768
## [Develop](ide/index-writing-code.md)
6869
### [Move Around in the Visual Studio IDE](ide/how-to-move-around-in-the-visual-studio-ide.md)
@@ -185,6 +186,7 @@
185186
#### [Find code changes and other history with CodeLens](ide/find-code-changes-and-other-history-with-codelens.md)
186187
##### [CodeIndex Command](ide/codeindex-command.md)
187188
#### [Editor support for other languages](ide/adding-visual-studio-editor-support-for-other-languages.md)
189+
### [Improve your code](ide/find-and-fix-code-errors.md)
188190
### [Cross-Platform Mobile Development](cross-platform/cross-platform-mobile-development-in-visual-studio.md)
189191
### [Office and Sharepoint Development](vsto/office-and-sharepoint-development-in-visual-studio.md)
190192
### [Work with XML and XSLT Files](xml-tools/xml-tools-in-visual-studio.md)

docs/ai/create-project-existing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ Once you've [installed Visual Studio Tools for AI](installation.md), it's easy t
3030
3131
## See Also
3232

33-
- [Manually identifying an existing Python environment](../python/managing-python-environments-in-visual-studio.md#manually-identifying-an-existing-environment)
33+
- [Manually identify an existing Python environment](../python/managing-python-environments-in-visual-studio.md#manually-identify-an-existing-environment)

docs/code-quality/C26472.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ms.workload:
1616
- "multiple"
1717
---
1818
# C26472 NO_CASTS_FOR_ARITHMETIC_CONVERSION
19-
"Don't use a static_cast for arithmetic conversions. Use brace initialization, gsl::narrow_cast or gsl::narow."
19+
"Don't use a static_cast for arithmetic conversions. Use brace initialization, gsl::narrow_cast or gsl::narrow."
2020

2121
**C++ Core Guidelines**:
2222
Type.1: Avoid casts

docs/code-quality/code-analysis-warnings-for-managed-code-by-checkid.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,6 @@ ms.workload:
265265

266266
The following table lists Code Analysis warnings for managed code by the CheckId identifier of the warning.
267267

268-
## Warnings
269-
270268
|CheckId|Warning|Description|
271269
|-------------|-------------|-----------------|
272270
|CA1000|[CA1000: Do not declare static members on generic types](../code-quality/ca1000-do-not-declare-static-members-on-generic-types.md)|When a static member of a generic type is called, the type argument must be specified for the type. When a generic instance member that does not support inference is called, the type argument must be specified for the member. In these two cases, the syntax for specifying the type argument is different and easily confused.|

docs/code-quality/demo-sample.md

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Demo Sample
2+
title: Sample C++ project for code analysis
33
ms.date: 11/04/2016
44
ms.prod: visual-studio-dev15
55
ms.technology: vs-ide-code-analysis
@@ -10,57 +10,57 @@ helpviewer_keywords:
1010
ms.assetid: 09e1b9f7-5916-4ed6-a001-5c2d7e710682
1111
author: mikeblome
1212
ms.author: mblome
13-
manager: douge
13+
manager: wpickett
1414
ms.workload:
1515
- "multiple"
1616
---
17-
# Demo Sample
17+
# Sample C++ project for code analysis
1818

19-
This following procedures show you how to create the sample for [Walkthrough: Analyzing C/C++ Code for Defects](../code-quality/walkthrough-analyzing-c-cpp-code-for-defects.md). The procedures create:
19+
This following procedures show you how to create the sample for [Walkthrough: Analyze C/C++ code for defects](../code-quality/walkthrough-analyzing-c-cpp-code-for-defects.md). The procedures create:
2020

21-
- A [!INCLUDE[vsprvs](../code-quality/includes/vsprvs_md.md)] solution named CppDemo.
21+
- A Visual Studio solution named CppDemo.
2222

23-
- A static library project named CodeDefects.
23+
- A static library project named CodeDefects.
2424

25-
- A static library project named Annotations.
25+
- A static library project named Annotations.
2626

27-
The procedures also provide the code for the header and .cpp files for the static libraries.
27+
The procedures also provide the code for the header and *.cpp* files for the static libraries.
2828

2929
## Create the CppDemo solution and the CodeDefects project
3030

31-
1. Click the **File** menu, point to **New**, and then click **New Project**.
31+
1. Click the **File** menu, point to **New**, and then click **New Project**.
3232

33-
2. In the **Project types** tree list, if Visual C++ is not your default language in VS expand **Other Languages**.
33+
2. In the **Project types** tree list, if Visual C++ is not your default language in VS expand **Other Languages**.
3434

35-
3. Expand **Visual C++**, and then click **General**.
35+
3. Expand **Visual C++**, and then click **General**.
3636

37-
4. In **Templates**, click **Empty Project**.
37+
4. In **Templates**, click **Empty Project**.
3838

39-
5. In the **Name** text box, type **CodeDefects**.
39+
5. In the **Name** text box, type **CodeDefects**.
4040

41-
6. Select the **Create directory for solution** check box.
41+
6. Select the **Create directory for solution** check box.
4242

43-
7. In the **Solution Name** text box, type **CppDemo**.
43+
7. In the **Solution Name** text box, type **CppDemo**.
4444

4545
## Configure the CodeDefects project as a static library
4646

47-
1. In Solution Explorer, right-click **CodeDefects** and then click **Properties**.
47+
1. In Solution Explorer, right-click **CodeDefects** and then click **Properties**.
4848

49-
2. Expand **Configuration Properties** and then click **General**.
49+
2. Expand **Configuration Properties** and then click **General**.
5050

51-
3. In the **General** list, select the text in the column next to **Target Extension**, and then type **.lib**.
51+
3. In the **General** list, select the text in the column next to **Target Extension**, and then type **.lib**.
5252

53-
4. In **Project Defaults**, click the column next to **Configuration Type**, and then click **Static Lib (.lib)**.
53+
4. In **Project Defaults**, click the column next to **Configuration Type**, and then click **Static Lib (.lib)**.
5454

5555
## Add the header and source file to the CodeDefects project
5656

57-
1. In Solution Explorer, expand **CodeDefects**, right-click **Header Files**, click **Add**, and then click **New Item**.
57+
1. In Solution Explorer, expand **CodeDefects**, right-click **Header Files**, click **Add**, and then click **New Item**.
5858

59-
2. In the **Add New Item** dialog box, click **Code**, and then click **Header File (.h)**.
59+
2. In the **Add New Item** dialog box, click **Code**, and then click **Header File (.h)**.
6060

61-
3. In the **Name** box, type **Bug.cpp** and then click **Add**.
61+
3. In the **Name** box, type **Bug.h** and then click **Add**.
6262

63-
4. Copy the following code and paste it into the **Bug.cpp** file in the [!INCLUDE[vsprvs](../code-quality/includes/vsprvs_md.md)] editor.
63+
4. Copy the following code and paste it into the *Bug.h* file in the Visual Studio editor.
6464

6565
```cpp
6666
#include <windows.h>
@@ -82,13 +82,13 @@ This following procedures show you how to create the sample for [Walkthrough: An
8282
const int ACCOUNT_DOMAIN_LEN = 128;
8383
```
8484

85-
5. In Solution Explorer, right-click **Source Files**, point to **New**, and then click **New Item**.
85+
5. In Solution Explorer, right-click **Source Files**, point to **New**, and then click **New Item**.
8686

87-
6. In the **Add New Item** dialog box, click **C++ File (.cpp)**
87+
6. In the **Add New Item** dialog box, click **C++ File (.cpp)**
8888

89-
7. In the **Name** box, type **Bug.cpp** and then click **Add**.
89+
7. In the **Name** box, type **Bug.cpp** and then click **Add**.
9090

91-
8. Copy the following code and paste it into the Bug.h file in the [!INCLUDE[vsprvs](../code-quality/includes/vsprvs_md.md)] editor.
91+
8. Copy the following code and paste it into the *Bug.cpp* file in the Visual Studio editor.
9292

9393
```cpp
9494
#include <stdlib.h>
@@ -152,29 +152,29 @@ This following procedures show you how to create the sample for [Walkthrough: An
152152

153153
## Add the Annotations project and configure it as a static library
154154

155-
1. In Solution Explorer, click **CppDemo**, point to **Add**, and then click **New Project**.
155+
1. In Solution Explorer, click **CppDemo**, point to **Add**, and then click **New Project**.
156156

157-
2. In the **Add New Project** dialog box, expand Visual C++, click **General**, and then click **Empty Project**.
157+
2. In the **Add New Project** dialog box, expand Visual C++, click **General**, and then click **Empty Project**.
158158

159-
3. In the **Name** text box, type **Annotations**, and then click **Add**.
159+
3. In the **Name** text box, type **Annotations**, and then click **Add**.
160160

161-
4. In Solution Explorer, right-click **Annotations** and then click **Properties**.
161+
4. In Solution Explorer, right-click **Annotations** and then click **Properties**.
162162

163-
5. Expand **Configuration Properties** and then click **General**.
163+
5. Expand **Configuration Properties** and then click **General**.
164164

165-
6. In the **General** list, select the text in the column next to **Target Extension**, and then type **.lib**.
165+
6. In the **General** list, select the text in the column next to **Target Extension**, and then type **.lib**.
166166

167-
7. In **Project Defaults**, click the column next to **Configuration Type**, and then click **Static Lib (.lib)**.
167+
7. In **Project Defaults**, click the column next to **Configuration Type**, and then click **Static Lib (.lib)**.
168168

169169
## Add the header file and source file to the Annotations project
170170

171-
1. In Solution Explorer, expand **Annotations**, right-click **Header Files**, click **Add**, and then click **New Item**.
171+
1. In Solution Explorer, expand **Annotations**, right-click **Header Files**, click **Add**, and then click **New Item**.
172172

173-
2. In the **Add New Item** dialog box, click **Header File (.h)**.
173+
2. In the **Add New Item** dialog box, click **Header File (.h)**.
174174

175-
3. In the **Name** box, type **annotations.h** and then click **Add**.
175+
3. In the **Name** box, type **annotations.h** and then click **Add**.
176176

177-
4. Copy the following code and paste it into the **annotations.h** file in the [!INCLUDE[vsprvs](../code-quality/includes/vsprvs_md.md)] editor.
177+
4. Copy the following code and paste it into the *annotations.h* file in the Visual Studio editor.
178178

179179
```cpp
180180
#include <CodeAnalysis/SourceAnnotations.h>
@@ -191,13 +191,13 @@ This following procedures show you how to create the sample for [Walkthrough: An
191191

192192
```
193193

194-
5. In Solution Explorer, right-click **Source Files**, point to **New**, and then click **New Item**.
194+
5. In Solution Explorer, right-click **Source Files**, point to **New**, and then click **New Item**.
195195

196-
6. In the **Add New Item** dialog box, click **Code** and then click **C++ File (.cpp)**
196+
6. In the **Add New Item** dialog box, click **Code** and then click **C++ File (.cpp)**
197197

198-
7. In the **Name** box, type **annotations.cpp** and then click **Add**.
198+
7. In the **Name** box, type **annotations.cpp** and then click **Add**.
199199

200-
8. Copy the following code and paste it into the **annotations.cpp** file in the [!INCLUDE[vsprvs](../code-quality/includes/vsprvs_md.md)] editor.
200+
8. Copy the following code and paste it into the *annotations.cpp* file in the Visual Studio editor.
201201

202202
```cpp
203203
#include <CodeAnalysis/SourceAnnotations.h>
@@ -226,4 +226,4 @@ This following procedures show you how to create the sample for [Walkthrough: An
226226

227227
```
228228

229-
9. Click the **File** menu, and then click **Save All**.
229+
9. Click the **File** menu, and then click **Save All**.

docs/code-quality/how-to-create-or-update-standard-code-analysis-check-in-policies.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "How to: Create or Update Standard Code Analysis Check-in Policies"
2+
title: "Create or Update Standard Code Analysis Check-in Policies"
33
ms.date: 11/04/2016
44
ms.prod: visual-studio-dev15
55
ms.technology: vs-ide-code-analysis
@@ -29,7 +29,7 @@ Code analysis check-in policies are set in the team project settings and apply t
2929

3030
After you specify a check-in policy for managed code, team members can synchronize their code analysis settings for code projects to the team project policy settings.
3131

32-
### To open the check-in policy editor
32+
## To open the check-in policy editor
3333

3434
1. In Team Explorer, right-click the team project name, point to **Team Project Settings**, and then click **Source Control**.
3535

@@ -41,28 +41,28 @@ After you specify a check-in policy for managed code, team members can synchroni
4141

4242
- Double-click the existing **Code Analysis** item in the **Policy Type** list to change the policy.
4343

44-
### To set policy options
44+
## To set policy options
4545

4646
Select or clear the following options:
4747

48-
|Option|Description|
49-
|------------|-----------------|
50-
|**Enforce check-in to only contain files that are part of current solution.**|Code analysis can run only on files specified in solution and project configuration files. This policy guarantees that all code that is part of a solution is analyzed.|
51-
|**Enforce C/C++ Code Analysis (/analyze)**|Requires that all C or C++ projects be built with the /analyze compiler option to run code analysis before they can be checked in.|
52-
|**Enforce Code Analysis for Managed Code**|Requires that all managed projects run code analysis and build before they can be checked in.|
48+
|Option|Description|
49+
|------------|-----------------|
50+
|**Enforce check-in to only contain files that are part of current solution.**|Code analysis can run only on files specified in solution and project configuration files. This policy guarantees that all code that is part of a solution is analyzed.|
51+
|**Enforce C/C++ Code Analysis (/analyze)**|Requires that all C or C++ projects be built with the /analyze compiler option to run code analysis before they can be checked in.|
52+
|**Enforce Code Analysis for Managed Code**|Requires that all managed projects run code analysis and build before they can be checked in.|
5353

54-
### To specify a managed rule set
54+
## To specify a managed rule set
5555

56-
- From the **Run this rule set** list, use one of the following methods:
56+
From the **Run this rule set** list, use one of the following methods:
5757

58-
- Select a Microsoft standard rule set.
58+
- Select a Microsoft standard rule set.
5959

60-
- To select a custom rule set, click **\<Select Rule Set from Source Control...>**, and then type the version control path of the rule set in the source control browser. The syntax of a version control path is:
60+
- Select a custom rule set by clicking **\<Select Rule Set from Source Control...>**. Then, type the version control path of the rule set in the source control browser. The syntax of a version control path is:
6161

62-
- **$/** `TeamProjectName` **/** `VersionControlPath`
62+
**$/** `TeamProjectName` **/** `VersionControlPath`
6363

64-
- For more information about how to create and implement a custom check-in policy rule set, see [Implementing Custom Check-in Policies for Managed Code](../code-quality/implementing-custom-code-analysis-check-in-policies-for-managed-code.md).
64+
For more information about how to create and implement a custom check-in policy rule set, see [Implement Custom Check-in Policies for Managed Code](../code-quality/implementing-custom-code-analysis-check-in-policies-for-managed-code.md).
6565

6666
## See also
6767

68-
[Creating and Using Code Analysis Check-In Policies](../code-quality/creating-and-using-code-analysis-check-in-policies.md)
68+
- [Create and use code analysis check-in policies](../code-quality/creating-and-using-code-analysis-check-in-policies.md)
-32.3 KB
Binary file not shown.

docs/data-tools/customize-how-visual-studio-creates-captions-for-data-bound-controls.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ ms.workload:
1717
- "data-storage"
1818
---
1919
# Customize how Visual Studio creates captions for data-bound controls
20+
2021
When you drag items from the [Data Sources Window](add-new-data-sources.md) onto a designer, a special consideration comes into play: the column names in the caption labels are reformatted into a more readable string when two or more words are found to be concatenated together. You can customize the way in which these labels are created, by setting the **SmartCaptionExpression**, **SmartCaptionReplacement**, and **SmartCaptionSuffix** values in the **HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\15.0\Data Designers** registry key.
2122

2223
> [!NOTE]
@@ -43,15 +44,15 @@ The following table lists the internal default settings for these registry value
4344
> [!CAUTION]
4445
> You should be very careful when doing anything in the Registry Editor. Back up the registry before editing it. If you use the Registry Editor incorrectly, you can cause serious problems that may require you to reinstall your operating system. Microsoft does not guarantee that problems that you cause by using the Registry Editor incorrectly can be resolved. Use the Registry Editor at your own risk.
4546
>
46-
> The following KnowledgeBase article contains instructions for backing up, editing, and restoring the registry: [Description of the Microsoft Windows registry](http://support.microsoft.com/default.aspx?scid=kb;en-us;256986) (http://support.microsoft.com/default.aspx?scid=kb;en-us;256986)
47+
> The following KnowledgeBase article contains instructions for backing up, editing, and restoring the registry: [Description of the Microsoft Windows registry](http://support.microsoft.com/default.aspx?scid=kb;en-us;256986) (http://support.microsoft.com/default.aspx?scid=kb;en-us;256986)
4748
48-
### To modify the smart captioning behavior of the Data Sources window
49+
## Modify the smart captioning behavior of the Data Sources window
4950

5051
1. Open a command window by clicking **Start** and then **Run**.
5152

5253
2. Type `regedit` in the **Run** dialog box, and click **OK**.
5354

54-
3. Expand the **HKEY_CURRENT_USER**, **Software*, **Microsoft**, **VisualStudio** node.
55+
3. Expand the **HKEY_CURRENT_USER**, **Software**, **Microsoft**, **VisualStudio** node.
5556

5657
7. Right-click the **15.0** node, and create a new **Key** named `Data Designers`.
5758

@@ -75,7 +76,7 @@ The following table lists the internal default settings for these registry value
7576

7677
The next time you drag items from the **Data Sources** window, the caption labels are created using the new registry values provided.
7778

78-
### To turn off the smart captioning feature
79+
## Turn off the smart captioning feature
7980

8081
1. Open a command window by clicking **Start** and then **Run**.
8182

0 commit comments

Comments
 (0)