This repository has been archived by the owner on Apr 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNotes_Video2.txt
83 lines (42 loc) · 1.55 KB
/
Notes_Video2.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
Source
https://code.visualstudio.com/docs/introvideos/codeediting
Code editing in Visual Studio Code
Covering open folder, create a new file, and use editing features.
Hit open folder
Choose a folder
Folders opened in VS Code will be organized in a logical manner. You can go to different areas through Explorer (top left)
This tutorial uses Node.js
VS Code supports JavaScript, TypeScript, and Node.js. Super.
See if you have Node.js installed by...
Go to command prompt
node --version
'node' is not recognized as an internal or external command,
operable program or batch file.
https://nodejs.org/en/
right click politcal ad, block
download LST
run
next, next next, next
Auto install (This installs Chocolately, and some other software)
Install
cmd prompt pops up
close all open programs
went through the install thing. Had to hit enter a few times.
Install runs for like, 10 minutes.
Saw some error messages. Copy/pasted all of the info into a txt file for reference. There was some kind of issue with Python 3. I think maybe it was trying to "upgrade" to an older version of Python? I don't know.
open command prompt
node --version
v14.16.1
In VS Code -> New file
name it apps.js
var msg = "Hello, world!"
after you type in this next line, you should see IntelliSense pop up
console.log(msg)
same for typing...
msg.
To automatically format code
Shift+alt+F
There is an autosave function. File -> Auto save (it's above preferences)
Open integrated terminal, view -> terminal
Go to the folder that your apps.js file is in.
node app.js, enter