Everything is Awesome with VS Code
-
Upload
mike-branstein -
Category
Software
-
view
11.394 -
download
2
Transcript of 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
Mike [email protected] /
KiZAN.com
• https://brosteins.com• https://github.com/mikebranstein • @mikebranstein• @brosteins• @kizantech
2
Where to Find Me
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
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?
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?
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
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:
Mike [email protected] /
KiZAN.com
• Search: Ctrl + P
• Commands: Ctrl + Shift + P
11
Master Builders Use the Command PaletteCommand Palette = Chrome Omnibox
Mike [email protected] /
KiZAN.com
12
Editing CodeWorking Files
Accordion UI
Auto Save
Side-by-Side Editing
Language-specific UI
Command Palette
Mike [email protected] /
KiZAN.com
13
Follow the Plan by Running Tasks
• Gulp, Make, Ant, MSBuild, Jake, & Rake
Run Tasks from the Command Palette
Mike [email protected] /
KiZAN.com
• Emmet (http://emmet.io)
• Multi Cursor
• Content-aware Selection
14
Advanced EditingIncrease your Efficiency with these shortcuts
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
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
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
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”
Mike [email protected] /
KiZAN.com
Thank You For Attending!Twitter @mikebranstein Mail [email protected] Web brosteins.com & KiZAN.com