Skip to content

Commit 7dddc9f

Browse files
committed
Merge remote-tracking branch 'MicrosoftDocs/master'
2 parents 7b85473 + 3d6e2a9 commit 7dddc9f

30 files changed

+40
-185
lines changed

.openpublishing.redirection.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1594,6 +1594,16 @@
15941594
"redirect_url": "/visualstudio/msbuild/msbuild-glossary",
15951595
"redirect_document_id": false
15961596
},
1597+
{
1598+
"source_path": "docs/nodejs/tutorial-nodejs.md",
1599+
"redirect_url": "/visualstudio/javascript/tutorial-nodejs",
1600+
"redirect_document_id": false
1601+
},
1602+
{
1603+
"source_path": "docs/nodejs/tutorial-nodejs-with-react-and-jsx.md",
1604+
"redirect_url": "/visualstudio/javascript/tutorial-nodejs-with-react-and-jsx",
1605+
"redirect_document_id": false
1606+
},
15971607
{
15981608
"source_path": "docs/profiling/profiling-tools.md",
15991609
"redirect_url": "/visualstudio/profiling/profiling-feature-tour",
@@ -5715,6 +5725,11 @@
57155725
"source_path": "connected-environment/troubleshooting.md",
57165726
"redirect_url": "/azure/dev-spaces/troubleshooting",
57175727
"redirect_document_id": false
5728+
},
5729+
{
5730+
"source_path": "mac/benefits-vsmac-over-xs.md",
5731+
"redirect_url": "/visualstudio/mac/",
5732+
"redirect_document_id": false
57185733
}
57195734

57205735
]

docs/javascript/TOC.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
- name: Tutorials
99
items:
1010
- name: Create a Node.js app with Express
11-
href: /visualstudio/nodejs/tutorial-nodejs?toc=/visualstudio/javascript/toc.json
11+
href: tutorial-nodejs.md
1212
- name: Create a Node.js app with React
13-
href: /visualstudio/nodejs/tutorial-nodejs-with-react-and-jsx?toc=/visualstudio/javascript/toc.json
13+
href: tutorial-nodejs-with-react-and-jsx.md
1414
- name: Publish to Linux App Service
1515
href: publish-nodejs-app-azure.md
1616
- name: How-to Guides

docs/nodejs/tutorial-nodejs-with-react-and-jsx.md renamed to docs/javascript/tutorial-nodejs-with-react-and-jsx.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ First, create a Node.js web application project.
5454

5555
Visual Studio creates the new solution and opens your project.
5656

57-
![Node.js project in Solution Explorer](../nodejs/media/tutorial-nodejs-react-project-structure.png)
57+
![Node.js project in Solution Explorer](../javascript/media/tutorial-nodejs-react-project-structure.png)
5858

5959
* Highlighted in bold is your project, using the name you gave in the **New Project** dialog box. In the file system, this project is represented by a *.njsproj* file in your project folder. You can set properties and environment variables associated with the project by right-clicking the project and choosing **Properties**. You can do round-tripping with other development tools, since the project file does not make custom changes to the Node.js project source.
6060

@@ -83,7 +83,7 @@ This app requires a number of npm modules to run correctly.
8383

8484
1. In the **Install New npm Packages** dialog box, search for the react package, and select **Install Package** to install it.
8585

86-
![Install npm packages](../nodejs/media/tutorial-nodejs-react-install-packages.png)
86+
![Install npm packages](../javascript/media/tutorial-nodejs-react-install-packages.png)
8787

8888
Select the **Output** window to see progress on installing the package (select **Npm** in the **Show output from** field). When installed, the package appears under the **npm** node.
8989

@@ -110,7 +110,7 @@ This app requires a number of npm modules to run correctly.
110110

111111
Here are the npm modules as they appear in Solution Explorer after they are installed.
112112

113-
![npm packages](../nodejs/media/tutorial-nodejs-react-npm-modules.png)
113+
![npm packages](../javascript/media/tutorial-nodejs-react-npm-modules.png)
114114

115115
> [!NOTE]
116116
> If you prefer to install npm packages using the command line, right-click the project node and choose **Open Command Prompt Here**. Use standard Node.js commands to install packages.
@@ -260,7 +260,7 @@ In the previous steps, you added *webpack-config.js* to the project. Next, you a
260260

261261
The command prompt window shows the result.
262262

263-
![Run webpack](../nodejs/media/tutorial-nodejs-react-run-webpack.png)
263+
![Run webpack](../javascript/media/tutorial-nodejs-react-run-webpack.png)
264264

265265
If you see any errors instead of the preceding output, you must resolve them before your app will work. If your npm package versions are different than the versions shown in this tutorial, that can be a source of errors. One way to fix errors is to use the exact versions shown in the earlier steps. Also, if one or more of these package versions has been deprecated and results in an error, you may need to install a more recent version to fix errors.
266266

@@ -272,23 +272,23 @@ In the previous steps, you added *webpack-config.js* to the project. Next, you a
272272

273273
1. If prompted to reload externally modified files, select **Yes to All**.
274274

275-
![Load modified files](../nodejs/media/tutorial-nodejs-react-reload-files.png)
275+
![Load modified files](../javascript/media/tutorial-nodejs-react-reload-files.png)
276276

277277
Each time you make changes to *app.tsx*, you must rerun the webpack command.
278278

279279
## Run the app
280280

281281
1. Make sure that Chrome is selected as the current debug target.
282282

283-
![Select Chrome as debug target](../nodejs/media/tutorial-nodejs-react-debug-target.png)
283+
![Select Chrome as debug target](../javascript/media/tutorial-nodejs-react-debug-target.png)
284284

285285
1. To run the app, press **F5** (**Debug** > **Start Debugging**) or the green arrow button.
286286

287287
A Node.js console window opens that shows the port on which the debugger is listening.
288288

289289
Visual Studio starts the app by launching the startup file, *server.js*.
290290

291-
![Run React in browser](../nodejs/media/tutorial-nodejs-react-running-react.png)
291+
![Run React in browser](../javascript/media/tutorial-nodejs-react-running-react.png)
292292

293293
1. Close the browser window.
294294

@@ -298,7 +298,7 @@ Each time you make changes to *app.tsx*, you must rerun the webpack command.
298298

299299
1. In *server.js*, click in the gutter to the left of the `staticPath` declaration to set a breakpoint:
300300

301-
![Set a breakpoint](../nodejs/media/tutorial-nodejs-react-set-breakpoint.png)
301+
![Set a breakpoint](../javascript/media/tutorial-nodejs-react-set-breakpoint.png)
302302

303303
Breakpoints are the most basic and essential feature of reliable debugging. A breakpoint indicates where Visual Studio should suspend your running code so you can take a look at the values of variables, or the behavior of memory, or whether or not a branch of code is getting run.
304304

@@ -326,7 +326,7 @@ In the preceding section, you attached the debugger to server-side Node.js code.
326326

327327
1. Switch to Visual Studio and set a breakpoint in *app-bundle.js* code in the `render()` function as shown in the following illustration:
328328

329-
![Set a breakpoint](../nodejs/media/tutorial-nodejs-react-set-breakpoint-client-code.png)
329+
![Set a breakpoint](../javascript/media/tutorial-nodejs-react-set-breakpoint-client-code.png)
330330

331331
1. With Chrome selected as the debug target in Visual Studio, press **Ctrl**+**F5** (**Debug** > **Start Without Debugging**) to run the app in the browser.
332332

@@ -338,7 +338,7 @@ In the preceding section, you attached the debugger to server-side Node.js code.
338338

339339
1. Select the Chrome process with the correct host port (1337 in this example), and select **Attach**.
340340

341-
![Attach to process](../nodejs/media/tutorial-nodejs-react-attach-to-process.png)
341+
![Attach to process](../javascript/media/tutorial-nodejs-react-attach-to-process.png)
342342

343343
You know the debugger has attached correctly when the DOM Explorer and the JavaScript Console open in Visual Studio. These debugging tools are similar to Chrome Developer Tools and F12 Tools for Edge.
344344

docs/nodejs/tutorial-nodejs.md renamed to docs/javascript/tutorial-nodejs.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ In this tutorial, you begin with a simple project containing code for a Node.js
7171

7272
Visual Studio creates the new solution and opens your project in the right pane. The *app.js* project file opens in the editor (left pane).
7373

74-
![Project structure](../nodejs/media/tutorial-project-structure.png)
74+
![Project structure](../javascript/media/tutorial-project-structure.png)
7575

7676
(1) Highlighted in **bold** is your project, using the name you gave in the **New Project** dialog box. In the file system, this project is represented by a *.njsproj* file in your project folder. You can set properties and environment variables associated with the project by right-clicking the project and choosing **Properties**. You can do round-tripping with other development tools, because the project file does not make custom changes to the Node.js project source.
7777

@@ -154,19 +154,19 @@ IntelliSense is a Visual Studio tool that assists you as you write code.
154154
155155
1. Put your cursor after the `data` string, type `: get` and IntelliSense will show you the `getData` function defined earlier in the code. Select `getData`.
156156
157-
![Use IntelliSense](../nodejs/media/tutorial-nodejs-intellisense.png)
157+
![Use IntelliSense](../javascript/media/tutorial-nodejs-intellisense.png)
158158
159159
1. Remove the comma (`,`) before `"data"` and you see green syntax highlighting on the expression. Hover over the syntax highlighting.
160160
161-
![View syntax error](../nodejs/media/tutorial-nodejs-syntax-checking.png)
161+
![View syntax error](../javascript/media/tutorial-nodejs-syntax-checking.png)
162162
163163
The last line of this message tells you that the JavaScript interpreter expected a comma (`,`).
164164
165165
1. In the lower pane, click the **Error List** tab.
166166
167167
You see the warning and description along with the filename and line number.
168168
169-
![View error list](../nodejs/media/tutorial-nodejs-error-list.png)
169+
![View error list](../javascript/media/tutorial-nodejs-error-list.png)
170170
171171
1. Fix the code by adding the comma (`,`) before `"data"`.
172172
@@ -182,21 +182,21 @@ You're next going to run the app with the Visual Studio debugger attached. Befor
182182

183183
Breakpoints are the most basic and essential feature of reliable debugging. A breakpoint indicates where Visual Studio should suspend your running code so you can take a look at the values of variables, or the behavior of memory, or whether or not a branch of code is getting run.
184184

185-
![Set a breakpoint](../nodejs/media/tutorial-nodejs-set-breakpoint.png)
185+
![Set a breakpoint](../javascript/media/tutorial-nodejs-set-breakpoint.png)
186186

187187
## Run the application
188188

189189
1. Select the debug target in the Debug toolbar.
190190

191-
![Select the debug target](../nodejs/media/tutorial-nodejs-deploy-target.png)
191+
![Select the debug target](../javascript/media/tutorial-nodejs-deploy-target.png)
192192

193193
1. Press **F5** (**Debug** > **Start Debugging**) to run the application.
194194

195195
The debugger pauses at the breakpoint you set. Now, you can inspect your app state.
196196

197197
1. Hover over `getData` to see its properties in a DataTip
198198

199-
![Inspect variables](../nodejs/media/tutorial-nodejs-inspect-variables.png)
199+
![Inspect variables](../javascript/media/tutorial-nodejs-inspect-variables.png)
200200

201201
1. Press **F5** (**Debug** > **Continue**) to continue.
202202

@@ -206,15 +206,15 @@ You're next going to run the app with the Visual Studio debugger attached. Befor
206206

207207
1. Click the buttons to display different images.
208208

209-
![App running in browser](../nodejs/media/tutorial-nodejs-running-in-browser.png)
209+
![App running in browser](../javascript/media/tutorial-nodejs-running-in-browser.png)
210210

211211
1. Close the web browser.
212212

213213
## (Optional) Publish to Azure App Service
214214

215215
1. In Solution Explorer, right-click the project and choose **Publish**.
216216

217-
![Publish to Azure App Service](../nodejs/media/tutorial-nodejs-publish-to-azure.png)
217+
![Publish to Azure App Service](../javascript/media/tutorial-nodejs-publish-to-azure.png)
218218

219219
1. Choose **Microsoft Azure App Service**.
220220

@@ -226,7 +226,7 @@ You're next going to run the app with the Visual Studio debugger attached. Befor
226226

227227
On successful deployment, your app opens in a browser running in Azure App Service. Click a button to display an image.
228228

229-
![App running in Azure App Service](../nodejs/media/tutorial-nodejs-running-in-azure.png)
229+
![App running in Azure App Service](../javascript/media/tutorial-nodejs-running-in-azure.png)
230230

231231
Congratulations on completing this tutorial!
232232

docs/python/toc.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
- name: Quickstarts
99
items:
1010
- name: Create a web app with Flask
11-
href: ../ide/quickstart-python.md?context=visualstudio/python/default
11+
href: ../ide/quickstart-python.md
12+
maintainContext: true
1213
- name: Create a project from a template
1314
href: quickstart-02-python-in-visual-studio-project-from-template.md
1415
- name: Create a project from existing code

docs/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
- name: R in Visual Studio...
133133
href: rtvs/getting-started-with-r.md
134134
- name: Node.js in Visual Studio
135-
href: nodejs/tutorial-nodejs.md
135+
href: javascript/tutorial-nodejs.md
136136
- name: C# in Visual Studio
137137
href: ide/tutorial-csharp-aspnet-core.md
138138
- name: Visual Basic in Visual Studio

mac/TOC.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# [Introducing Visual Studio for Mac](index.md)
2-
## [Benefits of Visual Studio for Mac over Xamarin Studio](benefits-vsmac-over-xs.md)
32
# [IDE Tour](ide-tour.md)
43

54
# [Installation](installation.md)

0 commit comments

Comments
 (0)