Skip to content

Commit 0342f99

Browse files
author
JiayueHu
authored
Merge pull request #3826 from MicrosoftDocs/master
Daily publishing Feb.5
2 parents 0f7411c + 1172498 commit 0342f99

22 files changed

+173
-31
lines changed

docs/containers/docker-tools.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ ms.date: 02/01/2019
77
ms.prod: visual-studio-dev15
88
ms.technology: vs-azure
99
ms.topic: include
10+
monikerRange: ">= vs-2017"
1011
---
1112
# Quickstart: Visual Studio Tools for Docker
1213

docs/debugger/allocation-hooks-and-c-run-time-memory-allocations.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
title: "Allocation Hooks and C Run-Time Memory Allocations | Microsoft Docs"
33
ms.date: "11/04/2016"
44
ms.topic: "conceptual"
5-
f1_keywords:
5+
f1_keywords:
66
- "vs.debug.hooks"
7-
dev_langs:
7+
dev_langs:
88
- "CSharp"
99
- "VB"
1010
- "FSharp"
1111
- "C++"
12-
helpviewer_keywords:
12+
helpviewer_keywords:
1313
- "debugging [C++], hook functions"
1414
- "memory allocation, troubleshooting allocation hooks"
1515
- "allocation hooks"
@@ -18,20 +18,20 @@ ms.assetid: cc34ee96-3d91-41bd-a019-aa3759139e7e
1818
author: "mikejo5000"
1919
ms.author: "mikejo"
2020
manager: jillfra
21-
ms.workload:
21+
ms.workload:
2222
- "multiple"
2323
---
2424
# Allocation Hooks and C Run-Time Memory Allocations
25-
A very important restriction on allocation hook functions is that they must explicitly ignore `_CRT_BLOCK` blocks. These blocks are the memory allocations made internally by C run-time library functions if they make any calls to C run-time library functions that allocate internal memory. You can ignore `_CRT_BLOCK` blocks by including the following code at the beginning of your allocation hook function:
26-
25+
A very important restriction on allocation hook functions is that they must explicitly ignore `_CRT_BLOCK` blocks. These blocks are the memory allocations made internally by C run-time library functions if they make any calls to C run-time library functions that allocate internal memory. You can ignore `_CRT_BLOCK` blocks by including the following code at the beginning of your allocation hook function:
26+
2727
```cpp
28-
if ( nBlockUse == _CRT_BLOCK )
29-
return( TRUE );
30-
```
31-
32-
If your allocation hook doesn't ignore `_CRT_BLOCK` blocks, then any C run-time library function called in your hook can trap the program in an endless loop. For example, `printf` makes an internal allocation. If your hook code calls `printf`, then the resulting allocation will cause your hook to be called again, which will call **printf** again, and so on, until the stack overflows. If you need to report `_CRT_BLOCK` allocation operations, one way to circumvent this restriction is to use Windows API functions, rather than C run-time functions, for formatting and output. Because the Windows APIs don't use the C run-time library heap, they won't trap your allocation hook in an endless loop.
33-
34-
If you examine the run-time library source files, you will see that the default allocation hook function, **CrtDefaultAllocHook** (which simply returns **TRUE**), is located in a separate file of its own, DBGHOOK.C. If you want your allocation hook to be called even for the allocations made by the run-time startup code that is executed before your application's **main** function, you can replace this default function with one of your own, instead of using [_CrtSetAllocHook](/cpp/c-runtime-library/reference/crtsetallochook).
35-
36-
## See Also
37-
[Debug Hook Function Writing](../debugger/debug-hook-function-writing.md)
28+
if ( nBlockUse == _CRT_BLOCK )
29+
return( TRUE );
30+
```
31+
32+
If your allocation hook doesn't ignore `_CRT_BLOCK` blocks, then any C run-time library function called in your hook can trap the program in an endless loop. For example, `printf` makes an internal allocation. If your hook code calls `printf`, then the resulting allocation will cause your hook to be called again, which will call **printf** again, and so on, until the stack overflows. If you need to report `_CRT_BLOCK` allocation operations, one way to circumvent this restriction is to use Windows API functions, rather than C run-time functions, for formatting and output. Because the Windows APIs don't use the C run-time library heap, they won't trap your allocation hook in an endless loop.
33+
34+
If you examine the run-time library source files, you will see that the default allocation hook function, **CrtDefaultAllocHook** (which simply returns **TRUE**), is located in a separate file of its own, DBGHOOK.C. If you want your allocation hook to be called even for the allocations made by the run-time startup code that is executed before your application's **main** function, you can replace this default function with one of your own, instead of using [_CrtSetAllocHook](/cpp/c-runtime-library/reference/crtsetallochook).
35+
36+
## See Also
37+
[Debug Hook Function Writing](../debugger/debug-hook-function-writing.md)

docs/deployment/deploying-applications-services-and-components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ms.workload:
2525
- "multiple"
2626
---
2727

28-
# Quickstart: First look at deployment in Visual Studio
28+
# First look at deployment in Visual Studio
2929

3030
By deploying an application, service, or component, you distribute it for installation on other computers, devices, or servers, or in the cloud. You choose the appropriate method in Visual Studio for the type of deployment that you need. (Many app types support other deployment tools such as command line deployment or NuGet that are not described here.)
3131

docs/extensibility/debugger/reference/idebugloadcompleteevent2.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@ IDebugLoadCompleteEvent2 : IUnknown
2727

2828
## Notes for Callers
2929
The DE creates and sends this event object to report that a program has been successfully loaded. The event is sent by using the [IDebugEventCallback2](../../../extensibility/debugger/reference/idebugeventcallback2.md) callback function that is supplied by the SDM when it attached to the program being debugged.
30-
31-
## Remarks
32-
This event is a stopping event and must have the `EVENT_STOPPING` flag set on the event attributes.
33-
30+
3431
## Requirements
3532
Header: msdbg.h
3633

@@ -41,4 +38,4 @@ IDebugLoadCompleteEvent2 : IUnknown
4138
## See Also
4239
[Core Interfaces](../../../extensibility/debugger/reference/core-interfaces.md)
4340
[IDebugEvent2](../../../extensibility/debugger/reference/idebugevent2.md)
44-
[IDebugEventCallback2](../../../extensibility/debugger/reference/idebugeventcallback2.md)
41+
[IDebugEventCallback2](../../../extensibility/debugger/reference/idebugeventcallback2.md)

docs/extensibility/extending-the-output-window.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ void CreatePane(string title)
109109
catch (ArgumentException)
110110
{
111111
// Create a new pane and write to it.
112-
return panes.Add(title);
112+
panes.Add(title);
113113
}
114114
}
115115
```

docs/ide/editorconfig-code-style-settings-reference.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,6 +1384,7 @@ The following list shows the formatting convention rules available in Visual Stu
13841384
- .NET formatting settings
13851385
- [Organize usings](#usings)
13861386
- dotnet_sort_system_directives_first
1387+
- dotnet_separate_import_directive_groups
13871388
- C# formatting settings
13881389
- [Newline options](#newline)
13891390
- csharp_new_line_before_open_brace
@@ -1426,6 +1427,7 @@ The following table shows the rule name, applicable languages, default value, an
14261427
| Rule name | Applicable languages | Visual Studio default | Visual Studio 2017 version |
14271428
| ----------- | -------------------- | ----------------------| ---------------- |
14281429
| dotnet_sort_system_directives_first | C# and Visual Basic | true | 15.3 |
1430+
| dotnet_separate_import_directive_groups | C# and Visual Basic | true | 15.5 |
14291431

14301432
**dotnet\_sort\_system\_directives_first**
14311433

@@ -1454,6 +1456,34 @@ Example *.editorconfig* file:
14541456
dotnet_sort_system_directives_first = true
14551457
```
14561458

1459+
**dotnet\_separate\_import\_directive\_groups**
1460+
1461+
- When this rule is set to **true**, place a blank line between using directive groups.
1462+
- When this rule is set to **false**, do not place a blank line between using directive groups.
1463+
1464+
Code examples:
1465+
1466+
```csharp
1467+
// dotnet_separate_import_directive_groups = true
1468+
using System.Collections.Generic;
1469+
using System.Threading.Tasks;
1470+
1471+
using Octokit;
1472+
1473+
// dotnet_separate_import_directive_groups = false
1474+
using System.Collections.Generic;
1475+
using System.Threading.Tasks;
1476+
using Octokit;
1477+
```
1478+
1479+
Example *.editorconfig* file:
1480+
1481+
```EditorConfig
1482+
# .NET formatting settings:
1483+
[*.{cs,vb}]
1484+
dotnet_separate_import_directive_groups = true
1485+
```
1486+
14571487
### C# formatting settings
14581488

14591489
The formatting rules in this section apply only to C# code.
@@ -2187,6 +2217,7 @@ charset = utf-8-bom
21872217
[*.{cs,vb}]
21882218
# Organize usings
21892219
dotnet_sort_system_directives_first = true
2220+
dotnet_separate_import_directive_groups = false
21902221

21912222
# this. preferences
21922223
dotnet_style_qualification_for_field = false:none

docs/ide/reference/sync-type-and-file.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ This refactoring applies to:
2626

2727
**Why:** Placing a type in a file with a different name, or vice-versa, it difficult to find what you're looking for. By renaming either the type or filename, code becomes more readable and easier to navigate.
2828

29+
> [!NOTE]
30+
> This refactoring is not yet available for .NET Standard and .NET Core projects.
31+
2932
## How-to
3033

3134
1. Highlight or place the text cursor inside the name of the type to synchronize:
@@ -57,9 +60,6 @@ This refactoring applies to:
5760

5861
![Inline result Visual Basic](media/synctype-result-vb.png)
5962

60-
> ![NOTE]
61-
> This refactoring is not yet available for .NET Standard and .NET Core projects.
62-
6363
## See also
6464

6565
- [Refactoring](../refactoring-in-visual-studio.md)

docs/javascript/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
href: javascript-in-vs-2017.md
77
- name: Quickstarts
88
items:
9+
- name: First look at the Visual Studio IDE
10+
href: quickstart-ide-orientation-js.md
911
- name: Create a Node.js project
1012
href: /visualstudio/ide/quickstart-nodejs?toc=/visualstudio/javascript/toc.json
1113
- name: Create a Vue.js project

docs/javascript/index.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ sections:
2727
image:
2828
src: https://docs.microsoft.com/media/common/i_setup.svg
2929
title: Install Visual Studio
30-
- href: ../ide/quickstart-ide-orientation.md
30+
- href: ../javascript/quickstart-ide-orientation-js.md
3131
html: <p></p>
3232
image:
3333
src: https://docs.microsoft.com/media/logos/logo_visual-studio.svg
23.7 KB
Loading
49.9 KB
Loading

docs/javascript/media/editor.png

88.4 KB
Loading
Loading
Loading
Loading
Loading
Loading
Loading

docs/javascript/media/start-page.png

256 KB
Loading
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
---
2+
title: Tour of the Visual Studio IDE
3+
titleSuffix: ""
4+
ms.date: 02/05/2019
5+
ms.prod: visual-studio-dev15
6+
ms.topic: quickstart
7+
author: mikejo5000
8+
ms.author: mikejo
9+
manager: jillfra
10+
ms.workload:
11+
- "multiple"
12+
---
13+
# First look at the Visual Studio IDE
14+
15+
In this 5-10 minute introduction to the Visual Studio integrated development environment (IDE), we'll take a tour of some of the windows, menus, and other UI features.
16+
17+
If you haven't already installed Visual Studio, go to the [Visual Studio downloads](https://visualstudio.microsoft.com/downloads/?utm_medium=microsoft&utm_source=docs.microsoft.com&utm_campaign=inline+link&utm_content=download+vs2017) page to install it for free.
18+
19+
## Start Page
20+
21+
The first thing you'll see after you launch Visual Studio is most likely the **Start Page**. The **Start Page** is designed as a "hub" to help you find the commands and project files you need faster. The **Recent** section displays projects and folders you've worked on recently. Under **New project**, you can click a link to bring up the **New Project** dialog box, or under **Open**, you can open an existing code project or folder. On the right is a feed of the latest developer news.
22+
23+
![Start Page in Visual Studio](media/start-page.png)
24+
25+
If you close the **Start Page** and want to see it again, you can reopen it from the **File** menu.
26+
27+
![File menu in Visual Studio](media/quickstart-IDE-file-menu-large.png)
28+
29+
## Create a project
30+
31+
To continue exploring Visual Studio's features, let's create a new project.
32+
33+
1. On the **Start Page**, in the search box under **New project**, type in **javascript** to filter the list of project types to those that contain "javascript" in their name or language type.
34+
35+
![Search project templates on Visual Studio Start Page](media/start-page-search-templates.png)
36+
37+
Visual Studio provides various kinds of project templates that help you get started coding quickly. Choose a **Blank Node.js Web Application** project template. (Alternatively, if you're a TypeScript developer, feel free to create a project in that language. The UI we'll be looking at is similar for all programming languages.)
38+
39+
1. In the **New Project** dialog box that appears, accept the default project name and choose **OK**.
40+
41+
The project is created and a file named *server.cs* opens in the **Editor** window. The **Editor** shows the contents of files, and is where you'll do most of your coding work in Visual Studio.
42+
43+
![Editor in Visual Studio](media/editor.png)
44+
45+
## Solution Explorer
46+
47+
**Solution Explorer**, which is typically on the right-hand side of Visual Studio, shows you a graphical representation of the hierarchy of files and folders in your project, solution, or code folder. You can browse the hierarchy and navigate to a file in **Solution Explorer**.
48+
49+
![Solution Explorer in Visual Studio](media/quickstart-IDE-solution-explorer.png)
50+
51+
## Menus
52+
53+
The menu bar along the top of Visual Studio groups commands into categories. For example, the **Project** menu contains commands related to the project you're working in. On the **Tools** menu, you can customize how Visual Studio behaves by selecting **Options**, or add features to your installation by selecting **Get Tools and Features**.
54+
55+
![Menu bar in Visual Studio](media/quickstart-IDE-menu-bar.png)
56+
57+
Let's open the **Error List** window by choosing the **View** menu, and then **Error List**.
58+
59+
## Error List
60+
61+
The **Error List** shows you errors, warning, and messages regarding the current state of your code. If there are any errors (such as a missing brace or semicolon) in your file, or anywhere in your project, they're listed here.
62+
63+
![Error List in Visual Studio](media/quickstart-IDE-error-list.png)
64+
65+
## Output window
66+
67+
The **Output** window shows you output messages from building your project and from your source control provider.
68+
69+
Let's build the project to see some build output. From the **Build** menu, choose **Build Solution**. The **Output** window automatically obtains focus and display a successful build message.
70+
71+
![Output window in Visual Studio](media/build-output-minimal.png)
72+
73+
## Quick Launch
74+
75+
The **Quick Launch** box is a quick and easy way to do pretty much anything in Visual Studio. You can enter some text related to what you want to do, and it'll show you a list of options that pertain to the text. For example, imagine you want to increase the build output's verbosity to display additional details about what exactly build is doing. Here's how you might do that:
76+
77+
1. Type **verbosity** into the **Quick Launch** box. From the displayed results, choose **Projects and Solutions --> Build and Run** under the **Options** category.
78+
79+
![Quick launch box in Visual Studio](media/quickstart-IDE-quick-launch.png)
80+
81+
The **Options** dialog box opens to the **Build and Run** options page.
82+
83+
1. Under **MSBuild project build output verbosity**, choose **Normal**, and then click **OK**.
84+
85+
1. Build the project again by right-clicking on the **NodejsWebApp1** project in **Solution Explorer** and choosing **Rebuild** from the context menu.
86+
87+
This time the **Output** window shows more verbose logging from the build process, including which files were copied where.
88+
89+
![Verbose build output in Visual Studio](media/build-output-verbose.png)
90+
91+
## Send Feedback menu
92+
93+
Should you encounter any problems while you're using Visual Studio, or if you have suggestions for how to improve the product, you can use the **Send Feedback** menu at the top of the Visual Studio window, next to the **Quick Launch** box.
94+
95+
![Send Feedback menu in Visual Studio](../ide/media/quickstart-ide-send-feedback.png)
96+
97+
## Next steps
98+
99+
We've looked at just a few of the features of Visual Studio to get acquainted with the user interface. To explore further:
100+
101+
> [!div class="nextstepaction"]
102+
> [Learn about the code editor](write-and-edit-code.md)
103+
104+
> [!div class="nextstepaction"]
105+
> [Learn about projects and solutions](../get-started/tutorial-projects-solutions.md)
106+
107+
## See also
108+
109+
- [Overview of the Visual Studio IDE](../get-started/visual-studio-ide.md)
110+
- [More features of Visual Studio 2017](../ide/advanced-feature-overview.md)
111+
- [Change theme and font colors](../ide/quickstart-personalize-the-ide.md)

docs/modeling/walkthrough-creating-a-custom-text-template-host.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ dev_langs:
1717
---
1818
# Walkthrough: Create a Custom Text Template Host
1919

20-
A *text template*<em>host</em> provides an environment that enables the *text template transformation engine* to run. The host is responsible for managing the engine's interaction with the file system. The engine or *directive processor* that needs a file or an assembly can request a resource from the host. The host can then search directories and the global assembly cache to locate the requested resource. For more information, see [The Text Template Transformation Process](../modeling/the-text-template-transformation-process.md).
20+
A *text template host* provides an environment that enables the *text template transformation engine* to run. The host is responsible for managing the engine's interaction with the file system. The engine or *directive processor* that needs a file or an assembly can request a resource from the host. The host can then search directories and the global assembly cache to locate the requested resource. For more information, see [The Text Template Transformation Process](../modeling/the-text-template-transformation-process.md).
2121

2222
You can write a custom host if you want to use the *text template transformation* functionality from outside Visual Studio or if you want to integrate that functionality into custom tools. To create a custom host, you must create a class that inherits from <xref:Microsoft.VisualStudio.TextTemplating.ITextTemplatingEngineHost>. For the documentation of the individual methods, see <xref:Microsoft.VisualStudio.TextTemplating.ITextTemplatingEngineHost>.
2323

@@ -818,4 +818,4 @@ In this walkthrough, you created a text template transformation host that suppor
818818

819819
## See also
820820

821-
- <xref:Microsoft.VisualStudio.TextTemplating.ITextTemplatingEngineHost>
821+
- <xref:Microsoft.VisualStudio.TextTemplating.ITextTemplatingEngineHost>

0 commit comments

Comments
 (0)