Skip to content

Commit b435da7

Browse files
author
Greg Van Liew
authored
Merge pull request #770 from Microsoft/chrisdias/nodejs
update images to current release
2 parents 1684716 + 32b423e commit b435da7

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed
Loading
Loading
350 KB
Loading
Loading
26.6 KB
Loading

docs/runtimes/nodejs.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ Let's get started by creating the simplest Node.js application, "Hello World".
2828
Create an empty folder called "Hello", navigate into and open VS Code:
2929

3030
```bash
31-
mkdir Hello
32-
cd Hello
31+
mkdir hello
32+
cd hello
3333
code .
3434
```
3535

@@ -39,6 +39,7 @@ From the File Explorer tool bar, press the New File button:
3939

4040
![File Explorer New File](images/nodejs/toolbar-new-file.png)
4141

42+
4243
and name the file `app.js`:
4344

4445
![File Explorer app.js](images/nodejs/app-js-file-created.png)
@@ -84,9 +85,9 @@ For this walkthrough, you can use either an external terminal or the VS Code int
8485

8586
### Debugging Hello World
8687

87-
As mentioned in the introduction, VS Code comes with a Node.js debugger installed. Let's try debugging our simple application.
88+
As mentioned in the introduction, VS Code ships with a debugger for Node.js apps. Let's try debugging our simple Hello World application.
8889

89-
To set a breakpoint in `app.js`, put the editor cursor on the first line and press `kb(editor.debug.action.toggleBreakpoint)` or simply click in the editor left gutter next to the line numbers. A red circle will appear in the gutter.
90+
To set a breakpoint in `app.js`, put the editor cursor on the first line and press `kb(editor.debug.action.toggleBreakpoint)` or simply click in the editor left gutter next to the line numbers. A red circle will appear in the gutter.
9091

9192
![app.js breakpoint set](images/nodejs/app-js-breakpoint-set.png)
9293

@@ -159,11 +160,11 @@ code .
159160
160161
The [Node.js](https://nodejs.org/api/) and [Express](http://expressjs.com/api.html) documentation does a great job explaining how to build rich applications using the platform and framework. Visual Studio Code will make you more productive developing these types of applications by providing great code editing and navigation experiences.
161162

162-
Open the file `app.js` and hover over the Node.js global object `__dirname`. Notice how VS Code understands what `__dirname` is. Even more exciting, you can get full IntelliSense against the Node.js framework. For example, you can require `http` and get full IntelliSense against the `http` class as you type in Visual Studio Code.
163+
Open the file `app.js` and hover over the Node.js global object `__dirname`. Notice how VS Code understands what `__dirname` is. Even more interesting, you can get full IntelliSense against the Node.js framework. For example, you can require `http` and get full IntelliSense against the `http` class as you type in Visual Studio Code.
163164

164165
![http IntelliSense](images/nodejs/intellisense.png)
165166

166-
VS Code uses TypeScript definition files (for example node.d.ts) to provide metadata to VS Code about the JavaScript based frameworks you are consuming in your application. Because TypeScript definition files are written in TypeScript, they can express the data types of parameters and functions, allowing VS Code to provide a rich IntelliSense experience. Thanks to a feature called `Automatic Typing Acquisition` you as user do not have to worry about these typings file. VS Code will install them automatically for you.
167+
VS Code uses TypeScript definition files (for example `node.d.ts`) to provide metadata to VS Code about the JavaScript based frameworks you are consuming in your application. Because TypeScript definition files are written in TypeScript, they can express the data types of parameters and functions, allowing VS Code to provide a rich IntelliSense experience. Thanks to a feature called `Automatic Typing Acquisition` you as user do not have to worry about these typings file, VS Code will install them automatically for you.
167168

168169
You can also write code that references modules in other files. For example, in `app.js` we require the `./routes/index` module, which exports an `Express.Router` class. If you bring up IntelliSense on `routes`, you can see the shape of the `Router` class.
169170

0 commit comments

Comments
 (0)