Everything is Awesome with VS Code

19
Mike Branstein @mikebranstein brosteins.com / KiZAN.com Everything is Awesome …when you’re using Visual Studio Code Mike Branstein @mikebranstein https://brosteins.com

Transcript of Everything is Awesome with VS Code

Page 1: Everything is Awesome with VS Code

Mike [email protected] /

KiZAN.com

Everything is Awesome…when you’re usingVisual Studio Code

Mike Branstein@mikebranstein

https://brosteins.com

Page 2: Everything is Awesome with VS Code

Mike [email protected] /

KiZAN.com

• https://brosteins.com• https://github.com/mikebranstein • @mikebranstein• @brosteins• @kizantech

2

Where to Find Me

Page 3: Everything is Awesome with VS Code

Mike [email protected] /

KiZAN.com

3

Father of the Year?

Page 4: Everything is Awesome with VS Code

Mike [email protected] /

KiZAN.com

Everything is Awesome…when you’re usingVisual Studio Code

Page 5: Everything is Awesome with VS Code

Mike [email protected] /

KiZAN.com

5

Why is Visual Studio Awesome?

Powerful IDE Integrated Debugging Team CollaborationExtensibilityMultiple Languages

IntelliSenseCode Lens

F5 DebugRemote Debugging

IntelliTrace

TFS / VSTSTFVCGit

Add-insExtensions

Page 6: Everything is Awesome with VS Code

Mike [email protected] /

KiZAN.com

• Next Generation Editor with smarts – it’s NOT an IDE• When you need something fast – loads in a second• Cross-platform (Windows, OS X, Linux)• Simple, yet Powerful

• Editor, with Multi-Language Support• Debugger• Integrated Source Control Management• Integrated Task Runner

• Freedom from a 1 GB+ download and 2 hour install - VS Code is 28MB

6

What is Visual Studio Code?Why Another Editor?

Page 7: Everything is Awesome with VS Code

Mike [email protected] /

KiZAN.com

• Electron Framework• Open-source framework developed by GitHub• Build Desktop/GUI apps with Node.js• Write in JavaScript, HTML, CSS

• Notable Editors using Electron• GitHub’s Atom Editor• Visual Studio Code

• VS Code is NOT a fork of the Atom Editor (although commonly believed)

7

Cross-Platform…Windows, OS X, & Linux?How’d They Do That?

Page 8: Everything is Awesome with VS Code

Mike [email protected] /

KiZAN.com

8

Why Everything IS AwesomeLayout

Command Line

Command Palette

Editing Basics & Tasks

Advanced Editing

VS Code for VS Lovers

Debugging

Customization

Extensibility

Page 9: Everything is Awesome with VS Code

Mike [email protected] /

KiZAN.com

9

Master Builders Should Know the UI

Page 10: Everything is Awesome with VS Code

Mike [email protected] /

KiZAN.com

10

Command Line Interfaces Make me Happy!

Argument Description-r open, using last active window

-n open, using new window

-g used with file:line:column, opens file at line and (optional) column position

file open, if file doesn’t exist, creates the file

file:line:column used with –g, opens file at line and (optional) column position

folder name of folder to open

Run VS Code from the CLI, using “code”, with arguments:

Page 11: Everything is Awesome with VS Code

Mike [email protected] /

KiZAN.com

• Search: Ctrl + P

• Commands: Ctrl + Shift + P

11

Master Builders Use the Command PaletteCommand Palette = Chrome Omnibox

Page 12: Everything is Awesome with VS Code

Mike [email protected] /

KiZAN.com

12

Editing CodeWorking Files

Accordion UI

Auto Save

Side-by-Side Editing

Language-specific UI

Command Palette

Page 13: Everything is Awesome with VS Code

Mike [email protected] /

KiZAN.com

13

Follow the Plan by Running Tasks

• Gulp, Make, Ant, MSBuild, Jake, & Rake

Run Tasks from the Command Palette

Page 14: Everything is Awesome with VS Code

Mike [email protected] /

KiZAN.com

• Emmet (http://emmet.io)

• Multi Cursor

• Content-aware Selection

14

Advanced EditingIncrease your Efficiency with these shortcuts

Page 15: Everything is Awesome with VS Code

Mike [email protected] /

KiZAN.com

• IntelliSense

• Snippets

• Goto & Peek

• Group Text Movement

15

For the Visual Studio FansThe best of VS is in VS Code

Page 16: Everything is Awesome with VS Code

Mike [email protected] /

KiZAN.com

• Node.js or Mono Debugging

• Launching the Debugger

• Debugging Profiles

• Shortcut Keys

16

DebuggingVS Code has a Built-in Debugger

Page 17: Everything is Awesome with VS Code

Mike [email protected] /

KiZAN.com

• Change Color Themes (…as long at it’s Black or Dark Grey)

• User Settings

• Workspace Settings

• Custom Key Bindings

17

Customizing the EditorMake VS Code Look and Feel Just Right

Page 18: Everything is Awesome with VS Code

Mike [email protected] /

KiZAN.com

18

Extending VS Code

Additional guides on writing VS Code extensions can be found at https://code.visualstudio.com/docs

Step 1

Step 2

Step 3

npm install –g yo generator-codeyo code cd extension-directory

code . -n

“F5” debugCommand Palette: “Hello World”

Page 19: Everything is Awesome with VS Code

Mike [email protected] /

KiZAN.com

Thank You For Attending!Twitter @mikebranstein Mail [email protected] Web brosteins.com & KiZAN.com