SlideShare a Scribd company logo
1 of 11
Download to read offline
﴾/﴿
VS Code 0.9.1 is available. Check out the new features ﴾/updates﴿ and update
﴾/docs/howtoupdate﴿ it now.
×
TOPICS The Basics Tweet 16 16
Like
Edit in GitHub ﴾https://github.com/Microsoft/vscode‐docs/blob/master/docs/editor/codebasics.md﴿
The Basics of Visual Studio Code
At its heart, Visual Studio Code is a code editor. Like many other code editors, VS Code adopts a
common UI and layout of an explorer on the left, showing all of the files and folders you have access to,
and an editor on the right, showing the content of the files you have opened.
In addition, there are a number of unique features in the VS Code user interface. This topic describes
these features.
Files, Folders & Projects
VS Code is file and folder based ‐ you can get started immediately by opening a file or folder in VS
Code.
On top of this, VS Code can read and take advantage of a variety of project files defined by different
frameworks and platforms. For example, if the folder you opened in VS Code contains one or more
package.json , project.json , tsconfig.json , or ASP .Net v5 Visual Studio solution and project files,
VS Code will read these files and use them to provide additional functionality such as rich IntelliSense in
the editor.
Basic Layout
VS Code comes with a simple and intuitive layout that maximizes the space provided for the editor
while leaving ample room to browse and access the full context of your folder or project. The UI is
divided into four areas
Editor the main area to edit your files. You can open up to three editors side by side
Side Bar contains different views like the Explorer to assist you while working on your project
Status Bar indicates information about the opened project and files you edit
View Bar on the far left‐hand side, lets you switch between views and gives you additional context
specific‐indicators, like the number of outgoing changes when Git is enabled
Each time you start VS Code, it opens up in the same state it was in when you last closed it. The folder,
layout and opened files are preserved.
Instead of placing files in separate tabs, VS Code allows up to three visible editors at any one time,
allowing you place up to three files together side by side.
This helps to reduce the overhead of managing tabs but does not restrict the number of files you can
work with. The Explorer view maintains a list of working files allowing you quick access to the files you
need.
Tip: You can move the Side Bar to the right hand side ﴾ View, Move Sidebar ﴿
or toggle its visibility ﴾ Ctrl+B ﴿.
Side by Side Editing
You can have up to three editors open side by side.
If you already have one editor open, there are multiple ways of opening another editor to the side of
the existing one:
Ctrl ﴾Mac: Cmd ﴿ click on a file in the Explorer
Ctrl+ to split the active editor into two
Open to the Side from the Explorer context menu on a file
Whenever you open another file, the editor that is active will display the content of that file. So if you
have two editors side by side and you want to open file 'foo.cs' into the right hand editor, make sure
that editor is active ﴾by clicking inside it﴿ before opening file 'foo.cs'.
Tip: You can resize editors and reorder them. Drag and drop the editor title
area to reposition or resize the editor.
Explorer
The Explorer is used to browse, open and manage all of the files and folders in your project.
After opening a folder in VS Code, the contents of the folder are shown in the Explorer. You can do
many things from here:
create, delete, rename files and folders
move files and folders with drag and drop
use the context menu to explore all options
Tip: You can drag and drop files into the Explorer from outside VS Code to
copy them
VS Code works very well with other tools that you might use, especially command line tools. If you want
to run a command line tool in the context of the folder you currently have open in VS Code, right‐click
the folder and select Open in Console .
You can also navigate to the location of a file or folder in the native Explorer by right clicking on a file or
folder and selecting Reveal in Explorer ﴾or Reveal in Finder on the Mac﴿.
Tip: Type Ctrl+P to quickly search and open a file by its name.
By default, VS Code excludes some folders from the explorer ﴾for example. .git﴿. Use the files.exclude
setting to configure rules for hiding files and folders from the explorer.
Tip: This is really useful to hide derived resources files, like *.meta in Unity, or *.js in a TypeScript
project. For Unity to exclude the *.cs.meta files, the pattern to choose would be: "**/*.cs.meta":
true
Working Files
At the top of the Explorer is a section labeled Working Files . This is a list of active files. These are files
you previously opened in VS Code that you're working on. For example, a file will be listed in the
working files section if you:
make a change to a file
double‐click a file in the Explorer
open a file that is not part of the current folder
Think of the working files section as similar to Tabs that you may be familiar with in other code editors
or IDEs. Just click a file in the working files section, and it becomes active in VS Code.
Once you are done with your task, you can individually remove files from the working files section, or
remove all files from the working files section by using the Close All Files action.
Tip: You can configure the appearance of working files in your settings. For
example, you can set the maximum number of visible files before a scroll bar
appears via explorer.workingFiles.maxVisible , and whether the working
files section should dynamically set its height via
explorer.workingFiles.dynamicHeight .
Save/Auto Save
By default, VS Code requires an explicit action to save your changes to disk, Ctrl+S .
However, it's easy to turn on Auto Save which will save your changes on idle. With this option turned
on, there is no need to explicitly save the file. This can be a great feature but if you are using file
watchers to automate tasks you may want to turn this behavior off so that you have greater control
when tasks run in the background.
To turn on Auto Save ﴾or turn it off﴿, simply open the Command Palette, Ctrl+Shift+P , and type auto
to filter the list and hit Enter.
You can also find this setting as an option on the File menu.
Search Across Files
VS Code allows you to quickly search over all the files in the open folder. Simply type Ctrl+Shift+F
and type in your search. Search results are grouped into files containing the search term, with an
indication of the hits in each file and its location. Expand a file to see a preview of all of the hits within
that file. Then single‐click on one of the hits to view in the editor.
Tip: We support regular expression searching in the search box too.
You can configure advanced search options by typing Ctrl+Shift+J . This will show additional fields to
configure the search.
In the two input boxes below the search box you can include and exclude files. Click on the toggle to
the right to enable the glob pattern syntax:
* to match one or more characters in a path segment
? to match on one character in a path segment
** to match any number of path segments ,including none
{} to group conditions ﴾e.g. {**/*.html,**/*.txt} matches all html and txt files﴿
[] to declare a range of characters to match ﴾e.g., example.[0‐9] to match on example.0 ,
example.1 , …
VS Code excludes some folders by default to reduce the number of search results that you are not
interested in ﴾for example: node_modules﴿. Open settings to change these rules under the
files.exclude and search.exclude section.
Tip: From the Explorer you can right‐click on a folder and select Find in
Folder to search inside a folder only.
Command Palette
VS Code is equally accessible from the keyboard. The most important key combination to know is
Ctrl+Shift+P which brings up the Command Palette. From here you have access to all of the
functionality of VS Code, including keyboard shortcuts for the most common operations.
The Command Palette UI provides access to many commands. You can execute editor commands, open
files, search for symbols, see a quick outline of a file all using the same interactive window. Here are a
few tips:
Ctrl+P will let you navigate to any file or symbol by simply typing in the name
Ctrl+Tab will cycle you through the last set of files opened
Ctrl+Shift+P will bring you directly to the editor commands
Ctrl+Shift+O will let you navigate to a specific symbol in a file
Ctrl+G will let you navigate to a specific line in a file
Type ? into the input field to get a list of available commands you can execute from here:
Quick File Navigation
The Explorer is great to navigate between files when you are exploring a project. However, when you are
working on a task you will find yourself quickly jumping between the same set of files. VS Code provides
two powerful commands to navigate in and across files with easy‐to‐use key bindings.
Press Ctrl+Tab to view a list of all files that have been opened since VS Code was launched. To open
one of these files, hold the Ctrl ﴾Mac: Cmd ﴿ key and press Tab to pick the file you want to navigate
to.
Alternatively, you can use Alt+Left and Alt+Right to navigate between files and edit locations. If you
are jumping around between different lines of the same file, these shortcuts allow you to navigate
between those locations easily.
Tip: You can open any file by its name when you type Ctrl+P .
File Encoding Support
Set the file encoding globally or per workspace by using the files.encoding setting in User Settings or
Workspace Settings.
You can view the file encoding in the status bar.
Click on the encoding in the status bar to reopen or save the active file with a different encoding.
Then choose an encoding.
Launching from the Command Line
You can launch VS Code from the command line to quickly open a file, folder, or a project. Typically you
open VS Code within the context of a folder. We find the best way to do this is to simply type:
code .
Tip: We have instructions for Mac and Linux users in our Setup ﴾setup﴿ topic
that enable you to start VS Code from within a terminal. We add Code to the
path in Windows automatically.
Sometimes you will want to open or create a file, if the file does not exist we will create it for you:
code index.html style.css readme.md
Tip: You can have as many file names as you want separated by spaces.
Additional Command line arguments
Here's optional command line arguments when you start VS Code at the command line via code .
Argument Description
‐g or ‐‐goto When used with file:line:column?, opens a file at a specific line and optional
column position. This argument is provided since some operating systems permit
: in a file name.
: in a file name.
‐n or ‐‐new‐
window
Opens a new session of VS Code instead of restoring the previous session.
‐r or ‐‐
reuse‐window
Forces opening a file or folder in the last active window.
file Name of a file to open. If the file doesn't exist, it will be created as dirty. You can
specify multiple files.
file:line:column? Name of a file to open at the specified line and optional column position. You can
specify multiple files in this manner, but you must use the ‐g argument ﴾once﴿
before using the file:line:column? specifier.
folder Name of a folder to open. You can specify multiple folders.
For both files and folders, you can use absolute or relative paths. Relative paths are relative to the
current directory of the command prompt where you run code .
If you specify more than one file or folder at the command line, VS Code will open only a single
instance.
Opening a Project
VS Code does not distinguish between opening a folder or a project. Instead, if the folder you open
contains any project files, VS Code will read those files and indicate the project context in the status bar.
From there you can also switch between projects if more than one project is found.
To open the project contained in the folder c:srcWebApp:
code c:srcwebapp
In other words, opening the folder containing the project effectively opens that project:
Window Management
VS Code has some options to control how windows should get opened or restored between sessions.
The window.openInNewWindow setting controls if files should open in a new window instead of reusing
an existing VS Code instance. By default, VS Code will open a new window, e.g. when you double‐click
on a file outside VS Code or open a file from the command line. Set this to false to reuse the last
active instance of VS Code and open files in there.
The window.reopenFolders setting tells VS Code how to restore the opened windows of your previous
session. By default, VS Code will reopen the last opened folder you worked on ﴾setting: one ﴿. Change
this setting to none to never reopen any folders and always start with an empty VS Code instance.
Change it to all to restore all folders you worked on. This will reopen all the windows with folders of
your previous session.
Next Steps
OK, you got past the basic UI ‐ there is a lot more to Code. Read on to find out about:
Editing Evolved ﴾editingevolved﴿ ‐ Lint, IntelliSense, Lightbulbs, Peek and Goto Definition and
more
Debugging ﴾debugging﴿ ‐ This is where VS Code really shines
Customization ﴾customization﴿ ‐ Themes, settings and keyboard bindings
Common Questions
Q: Is it possible to globally search and replace?
A: This feature is not yet implemented but you can expect it to come in the future!
Was this documentation helpful?
Yes No
Last updated on 10/12/2015
Hello from Seattle. Follow @code 23.2K followers
Privacy ﴾http://www.microsoft.com/privacystatement/en‐us/core/default.aspx﴿
Terms of Use ﴾http://www.microsoft.com/en‐us/legal/intellectualproperty/copyright/default.aspx﴿
License ﴾/License﴿
﴾http://www.microsoft.com﴿
© 2015 Microsoft

More Related Content

What's hot

Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1Omar Fathy
 
Basic commands of linux
Basic commands of linuxBasic commands of linux
Basic commands of linuxshravan saini
 
Course 102: Lecture 14: Users and Permissions
Course 102: Lecture 14: Users and PermissionsCourse 102: Lecture 14: Users and Permissions
Course 102: Lecture 14: Users and PermissionsAhmed El-Arabawy
 
Linux Directory Structure
Linux Directory StructureLinux Directory Structure
Linux Directory StructureKevin OBrien
 
makefiles tutorial
makefiles tutorialmakefiles tutorial
makefiles tutorialvsubhashini
 
Linux directory structure by jitu mistry
Linux directory structure by jitu mistryLinux directory structure by jitu mistry
Linux directory structure by jitu mistryJITU MISTRY
 
Power shell basics day 4
Power shell basics day 4Power shell basics day 4
Power shell basics day 4Ashish Raj
 
Getting Git Right
Getting Git RightGetting Git Right
Getting Git RightSven Peters
 
Managing dependencies with gradle
Managing dependencies with gradleManaging dependencies with gradle
Managing dependencies with gradleLiviu Tudor
 
Linux architecture
Linux architectureLinux architecture
Linux architecturemcganesh
 
Menu bars and menus
Menu bars and menusMenu bars and menus
Menu bars and menusmyrajendra
 
introduction and configuration of IIS (in addition with printer)
introduction and configuration of IIS (in addition with printer)introduction and configuration of IIS (in addition with printer)
introduction and configuration of IIS (in addition with printer)Assay Khan
 
Bash Shell Scripting
Bash Shell ScriptingBash Shell Scripting
Bash Shell ScriptingRaghu nath
 
An Open Source Workshop
An Open Source WorkshopAn Open Source Workshop
An Open Source Workshophalehmahbod
 

What's hot (20)

Web controls
Web controlsWeb controls
Web controls
 
Git
GitGit
Git
 
Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1
 
Basic commands of linux
Basic commands of linuxBasic commands of linux
Basic commands of linux
 
Course 102: Lecture 14: Users and Permissions
Course 102: Lecture 14: Users and PermissionsCourse 102: Lecture 14: Users and Permissions
Course 102: Lecture 14: Users and Permissions
 
Linux Directory Structure
Linux Directory StructureLinux Directory Structure
Linux Directory Structure
 
makefiles tutorial
makefiles tutorialmakefiles tutorial
makefiles tutorial
 
Linux directory structure by jitu mistry
Linux directory structure by jitu mistryLinux directory structure by jitu mistry
Linux directory structure by jitu mistry
 
Power shell basics day 4
Power shell basics day 4Power shell basics day 4
Power shell basics day 4
 
Getting Git Right
Getting Git RightGetting Git Right
Getting Git Right
 
Managing dependencies with gradle
Managing dependencies with gradleManaging dependencies with gradle
Managing dependencies with gradle
 
Linux architecture
Linux architectureLinux architecture
Linux architecture
 
Linux installation
Linux installationLinux installation
Linux installation
 
Menu bars and menus
Menu bars and menusMenu bars and menus
Menu bars and menus
 
Java beans
Java beansJava beans
Java beans
 
introduction and configuration of IIS (in addition with printer)
introduction and configuration of IIS (in addition with printer)introduction and configuration of IIS (in addition with printer)
introduction and configuration of IIS (in addition with printer)
 
Gitlab flow
Gitlab flowGitlab flow
Gitlab flow
 
Bash Shell Scripting
Bash Shell ScriptingBash Shell Scripting
Bash Shell Scripting
 
An Open Source Workshop
An Open Source WorkshopAn Open Source Workshop
An Open Source Workshop
 
Deploying a website
Deploying a websiteDeploying a website
Deploying a website
 

Similar to The Basics of Visual Studio Code.pdf

FILE TYPE/RUN/ FOLDER OPTION
FILE TYPE/RUN/FOLDER OPTIONFILE TYPE/RUN/FOLDER OPTION
FILE TYPE/RUN/ FOLDER OPTIONAife Ocubillo
 
Laporan Praktikum Keamanan Siber - Tugas 3 - Kelas C - Kelompok 3.pdf
Laporan Praktikum Keamanan Siber - Tugas 3 - Kelas C - Kelompok 3.pdfLaporan Praktikum Keamanan Siber - Tugas 3 - Kelas C - Kelompok 3.pdf
Laporan Praktikum Keamanan Siber - Tugas 3 - Kelas C - Kelompok 3.pdfIGedeArieYogantaraSu
 
help with Linux/Unix starting
help with Linux/Unix startinghelp with Linux/Unix starting
help with Linux/Unix startingdummy
 
Basic Computer Works for BBA students
Basic Computer Works for BBA studentsBasic Computer Works for BBA students
Basic Computer Works for BBA studentsAnkit Gupta
 
Windows Basic Computer Skills
Windows Basic Computer SkillsWindows Basic Computer Skills
Windows Basic Computer SkillsMarvin Nurse
 
Microsoft Word Basics2.pptx
Microsoft Word Basics2.pptxMicrosoft Word Basics2.pptx
Microsoft Word Basics2.pptxSAStudio2
 
Microsoft word-getting-started-basics
Microsoft word-getting-started-basicsMicrosoft word-getting-started-basics
Microsoft word-getting-started-basicsPraveen Sudarsan
 
Getting started with Website Project and Sublime Text 2
Getting started with Website Project and Sublime Text 2Getting started with Website Project and Sublime Text 2
Getting started with Website Project and Sublime Text 2Amanda Zimmer
 
CropSyst.ppt
CropSyst.pptCropSyst.ppt
CropSyst.pptBetterMe4
 
Must be similar to screenshotsI must be able to run the projects.docx
Must be similar to screenshotsI must be able to run the projects.docxMust be similar to screenshotsI must be able to run the projects.docx
Must be similar to screenshotsI must be able to run the projects.docxherthaweston
 
Computer assignment 01.07.2021.pptx
Computer assignment 01.07.2021.pptxComputer assignment 01.07.2021.pptx
Computer assignment 01.07.2021.pptxKSATEXTILE
 
Com6 recalling ms word
Com6 recalling ms wordCom6 recalling ms word
Com6 recalling ms wordJason Ruelo
 
1.0 QuickBooks Fundementals : Day 02 Windows :2.1 windows
1.0 QuickBooks Fundementals : Day 02 Windows :2.1 windows1.0 QuickBooks Fundementals : Day 02 Windows :2.1 windows
1.0 QuickBooks Fundementals : Day 02 Windows :2.1 windowsVeerendra Singh
 
Atlas.ti 8 質性分析軟體新功能介紹_祺荃企業有限公司
Atlas.ti 8 質性分析軟體新功能介紹_祺荃企業有限公司Atlas.ti 8 質性分析軟體新功能介紹_祺荃企業有限公司
Atlas.ti 8 質性分析軟體新功能介紹_祺荃企業有限公司Cheer Chain Enterprise Co., Ltd.
 

Similar to The Basics of Visual Studio Code.pdf (20)

FILE TYPE/RUN/ FOLDER OPTION
FILE TYPE/RUN/FOLDER OPTIONFILE TYPE/RUN/FOLDER OPTION
FILE TYPE/RUN/ FOLDER OPTION
 
Laporan Praktikum Keamanan Siber - Tugas 3 - Kelas C - Kelompok 3.pdf
Laporan Praktikum Keamanan Siber - Tugas 3 - Kelas C - Kelompok 3.pdfLaporan Praktikum Keamanan Siber - Tugas 3 - Kelas C - Kelompok 3.pdf
Laporan Praktikum Keamanan Siber - Tugas 3 - Kelas C - Kelompok 3.pdf
 
help with Linux/Unix starting
help with Linux/Unix startinghelp with Linux/Unix starting
help with Linux/Unix starting
 
Basic Computer Works for BBA students
Basic Computer Works for BBA studentsBasic Computer Works for BBA students
Basic Computer Works for BBA students
 
Windows Basic Computer Skills
Windows Basic Computer SkillsWindows Basic Computer Skills
Windows Basic Computer Skills
 
Microsoft Word Basics2.pptx
Microsoft Word Basics2.pptxMicrosoft Word Basics2.pptx
Microsoft Word Basics2.pptx
 
Microsoft word-getting-started-basics
Microsoft word-getting-started-basicsMicrosoft word-getting-started-basics
Microsoft word-getting-started-basics
 
Getting started with Website Project and Sublime Text 2
Getting started with Website Project and Sublime Text 2Getting started with Website Project and Sublime Text 2
Getting started with Website Project and Sublime Text 2
 
CropSyst.ppt
CropSyst.pptCropSyst.ppt
CropSyst.ppt
 
Batch FIles
Batch FIlesBatch FIles
Batch FIles
 
Must be similar to screenshotsI must be able to run the projects.docx
Must be similar to screenshotsI must be able to run the projects.docxMust be similar to screenshotsI must be able to run the projects.docx
Must be similar to screenshotsI must be able to run the projects.docx
 
Computer assignment 01.07.2021.pptx
Computer assignment 01.07.2021.pptxComputer assignment 01.07.2021.pptx
Computer assignment 01.07.2021.pptx
 
ssssss
ssssssssssss
ssssss
 
Fewd week1 slides
Fewd week1 slidesFewd week1 slides
Fewd week1 slides
 
Com6 recalling ms word
Com6 recalling ms wordCom6 recalling ms word
Com6 recalling ms word
 
Word processing
Word processingWord processing
Word processing
 
1.0 QuickBooks Fundementals : Day 02 Windows :2.1 windows
1.0 QuickBooks Fundementals : Day 02 Windows :2.1 windows1.0 QuickBooks Fundementals : Day 02 Windows :2.1 windows
1.0 QuickBooks Fundementals : Day 02 Windows :2.1 windows
 
Word Processor
Word ProcessorWord Processor
Word Processor
 
Atlas.ti 8 質性分析軟體新功能介紹_祺荃企業有限公司
Atlas.ti 8 質性分析軟體新功能介紹_祺荃企業有限公司Atlas.ti 8 質性分析軟體新功能介紹_祺荃企業有限公司
Atlas.ti 8 質性分析軟體新功能介紹_祺荃企業有限公司
 
171dreamweaver
171dreamweaver171dreamweaver
171dreamweaver
 

Recently uploaded

(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 

Recently uploaded (20)

(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 

The Basics of Visual Studio Code.pdf

  • 1. ﴾/﴿ VS Code 0.9.1 is available. Check out the new features ﴾/updates﴿ and update ﴾/docs/howtoupdate﴿ it now. × TOPICS The Basics Tweet 16 16 Like Edit in GitHub ﴾https://github.com/Microsoft/vscode‐docs/blob/master/docs/editor/codebasics.md﴿ The Basics of Visual Studio Code At its heart, Visual Studio Code is a code editor. Like many other code editors, VS Code adopts a common UI and layout of an explorer on the left, showing all of the files and folders you have access to, and an editor on the right, showing the content of the files you have opened. In addition, there are a number of unique features in the VS Code user interface. This topic describes these features. Files, Folders & Projects VS Code is file and folder based ‐ you can get started immediately by opening a file or folder in VS Code. On top of this, VS Code can read and take advantage of a variety of project files defined by different frameworks and platforms. For example, if the folder you opened in VS Code contains one or more package.json , project.json , tsconfig.json , or ASP .Net v5 Visual Studio solution and project files, VS Code will read these files and use them to provide additional functionality such as rich IntelliSense in the editor. Basic Layout VS Code comes with a simple and intuitive layout that maximizes the space provided for the editor while leaving ample room to browse and access the full context of your folder or project. The UI is divided into four areas Editor the main area to edit your files. You can open up to three editors side by side Side Bar contains different views like the Explorer to assist you while working on your project Status Bar indicates information about the opened project and files you edit View Bar on the far left‐hand side, lets you switch between views and gives you additional context specific‐indicators, like the number of outgoing changes when Git is enabled Each time you start VS Code, it opens up in the same state it was in when you last closed it. The folder, layout and opened files are preserved.
  • 2. Instead of placing files in separate tabs, VS Code allows up to three visible editors at any one time, allowing you place up to three files together side by side. This helps to reduce the overhead of managing tabs but does not restrict the number of files you can work with. The Explorer view maintains a list of working files allowing you quick access to the files you need. Tip: You can move the Side Bar to the right hand side ﴾ View, Move Sidebar ﴿ or toggle its visibility ﴾ Ctrl+B ﴿. Side by Side Editing You can have up to three editors open side by side. If you already have one editor open, there are multiple ways of opening another editor to the side of the existing one: Ctrl ﴾Mac: Cmd ﴿ click on a file in the Explorer Ctrl+ to split the active editor into two Open to the Side from the Explorer context menu on a file
  • 3. Whenever you open another file, the editor that is active will display the content of that file. So if you have two editors side by side and you want to open file 'foo.cs' into the right hand editor, make sure that editor is active ﴾by clicking inside it﴿ before opening file 'foo.cs'. Tip: You can resize editors and reorder them. Drag and drop the editor title area to reposition or resize the editor. Explorer The Explorer is used to browse, open and manage all of the files and folders in your project. After opening a folder in VS Code, the contents of the folder are shown in the Explorer. You can do many things from here: create, delete, rename files and folders move files and folders with drag and drop use the context menu to explore all options Tip: You can drag and drop files into the Explorer from outside VS Code to copy them
  • 4. VS Code works very well with other tools that you might use, especially command line tools. If you want to run a command line tool in the context of the folder you currently have open in VS Code, right‐click the folder and select Open in Console . You can also navigate to the location of a file or folder in the native Explorer by right clicking on a file or folder and selecting Reveal in Explorer ﴾or Reveal in Finder on the Mac﴿. Tip: Type Ctrl+P to quickly search and open a file by its name. By default, VS Code excludes some folders from the explorer ﴾for example. .git﴿. Use the files.exclude setting to configure rules for hiding files and folders from the explorer. Tip: This is really useful to hide derived resources files, like *.meta in Unity, or *.js in a TypeScript project. For Unity to exclude the *.cs.meta files, the pattern to choose would be: "**/*.cs.meta": true Working Files At the top of the Explorer is a section labeled Working Files . This is a list of active files. These are files you previously opened in VS Code that you're working on. For example, a file will be listed in the working files section if you: make a change to a file double‐click a file in the Explorer open a file that is not part of the current folder
  • 5. Think of the working files section as similar to Tabs that you may be familiar with in other code editors or IDEs. Just click a file in the working files section, and it becomes active in VS Code. Once you are done with your task, you can individually remove files from the working files section, or remove all files from the working files section by using the Close All Files action. Tip: You can configure the appearance of working files in your settings. For example, you can set the maximum number of visible files before a scroll bar appears via explorer.workingFiles.maxVisible , and whether the working files section should dynamically set its height via explorer.workingFiles.dynamicHeight . Save/Auto Save By default, VS Code requires an explicit action to save your changes to disk, Ctrl+S . However, it's easy to turn on Auto Save which will save your changes on idle. With this option turned on, there is no need to explicitly save the file. This can be a great feature but if you are using file watchers to automate tasks you may want to turn this behavior off so that you have greater control when tasks run in the background. To turn on Auto Save ﴾or turn it off﴿, simply open the Command Palette, Ctrl+Shift+P , and type auto to filter the list and hit Enter. You can also find this setting as an option on the File menu. Search Across Files VS Code allows you to quickly search over all the files in the open folder. Simply type Ctrl+Shift+F and type in your search. Search results are grouped into files containing the search term, with an indication of the hits in each file and its location. Expand a file to see a preview of all of the hits within that file. Then single‐click on one of the hits to view in the editor.
  • 6. Tip: We support regular expression searching in the search box too. You can configure advanced search options by typing Ctrl+Shift+J . This will show additional fields to configure the search. In the two input boxes below the search box you can include and exclude files. Click on the toggle to the right to enable the glob pattern syntax: * to match one or more characters in a path segment ? to match on one character in a path segment ** to match any number of path segments ,including none {} to group conditions ﴾e.g. {**/*.html,**/*.txt} matches all html and txt files﴿ [] to declare a range of characters to match ﴾e.g., example.[0‐9] to match on example.0 , example.1 , … VS Code excludes some folders by default to reduce the number of search results that you are not interested in ﴾for example: node_modules﴿. Open settings to change these rules under the files.exclude and search.exclude section. Tip: From the Explorer you can right‐click on a folder and select Find in Folder to search inside a folder only.
  • 7. Command Palette VS Code is equally accessible from the keyboard. The most important key combination to know is Ctrl+Shift+P which brings up the Command Palette. From here you have access to all of the functionality of VS Code, including keyboard shortcuts for the most common operations. The Command Palette UI provides access to many commands. You can execute editor commands, open files, search for symbols, see a quick outline of a file all using the same interactive window. Here are a few tips: Ctrl+P will let you navigate to any file or symbol by simply typing in the name Ctrl+Tab will cycle you through the last set of files opened Ctrl+Shift+P will bring you directly to the editor commands Ctrl+Shift+O will let you navigate to a specific symbol in a file Ctrl+G will let you navigate to a specific line in a file Type ? into the input field to get a list of available commands you can execute from here: Quick File Navigation
  • 8. The Explorer is great to navigate between files when you are exploring a project. However, when you are working on a task you will find yourself quickly jumping between the same set of files. VS Code provides two powerful commands to navigate in and across files with easy‐to‐use key bindings. Press Ctrl+Tab to view a list of all files that have been opened since VS Code was launched. To open one of these files, hold the Ctrl ﴾Mac: Cmd ﴿ key and press Tab to pick the file you want to navigate to. Alternatively, you can use Alt+Left and Alt+Right to navigate between files and edit locations. If you are jumping around between different lines of the same file, these shortcuts allow you to navigate between those locations easily. Tip: You can open any file by its name when you type Ctrl+P . File Encoding Support Set the file encoding globally or per workspace by using the files.encoding setting in User Settings or Workspace Settings. You can view the file encoding in the status bar. Click on the encoding in the status bar to reopen or save the active file with a different encoding.
  • 9. Then choose an encoding. Launching from the Command Line You can launch VS Code from the command line to quickly open a file, folder, or a project. Typically you open VS Code within the context of a folder. We find the best way to do this is to simply type: code . Tip: We have instructions for Mac and Linux users in our Setup ﴾setup﴿ topic that enable you to start VS Code from within a terminal. We add Code to the path in Windows automatically. Sometimes you will want to open or create a file, if the file does not exist we will create it for you: code index.html style.css readme.md Tip: You can have as many file names as you want separated by spaces. Additional Command line arguments Here's optional command line arguments when you start VS Code at the command line via code . Argument Description ‐g or ‐‐goto When used with file:line:column?, opens a file at a specific line and optional column position. This argument is provided since some operating systems permit : in a file name.
  • 10. : in a file name. ‐n or ‐‐new‐ window Opens a new session of VS Code instead of restoring the previous session. ‐r or ‐‐ reuse‐window Forces opening a file or folder in the last active window. file Name of a file to open. If the file doesn't exist, it will be created as dirty. You can specify multiple files. file:line:column? Name of a file to open at the specified line and optional column position. You can specify multiple files in this manner, but you must use the ‐g argument ﴾once﴿ before using the file:line:column? specifier. folder Name of a folder to open. You can specify multiple folders. For both files and folders, you can use absolute or relative paths. Relative paths are relative to the current directory of the command prompt where you run code . If you specify more than one file or folder at the command line, VS Code will open only a single instance. Opening a Project VS Code does not distinguish between opening a folder or a project. Instead, if the folder you open contains any project files, VS Code will read those files and indicate the project context in the status bar. From there you can also switch between projects if more than one project is found. To open the project contained in the folder c:srcWebApp: code c:srcwebapp In other words, opening the folder containing the project effectively opens that project: Window Management VS Code has some options to control how windows should get opened or restored between sessions. The window.openInNewWindow setting controls if files should open in a new window instead of reusing an existing VS Code instance. By default, VS Code will open a new window, e.g. when you double‐click on a file outside VS Code or open a file from the command line. Set this to false to reuse the last active instance of VS Code and open files in there.
  • 11. The window.reopenFolders setting tells VS Code how to restore the opened windows of your previous session. By default, VS Code will reopen the last opened folder you worked on ﴾setting: one ﴿. Change this setting to none to never reopen any folders and always start with an empty VS Code instance. Change it to all to restore all folders you worked on. This will reopen all the windows with folders of your previous session. Next Steps OK, you got past the basic UI ‐ there is a lot more to Code. Read on to find out about: Editing Evolved ﴾editingevolved﴿ ‐ Lint, IntelliSense, Lightbulbs, Peek and Goto Definition and more Debugging ﴾debugging﴿ ‐ This is where VS Code really shines Customization ﴾customization﴿ ‐ Themes, settings and keyboard bindings Common Questions Q: Is it possible to globally search and replace? A: This feature is not yet implemented but you can expect it to come in the future! Was this documentation helpful? Yes No Last updated on 10/12/2015 Hello from Seattle. Follow @code 23.2K followers Privacy ﴾http://www.microsoft.com/privacystatement/en‐us/core/default.aspx﴿ Terms of Use ﴾http://www.microsoft.com/en‐us/legal/intellectualproperty/copyright/default.aspx﴿ License ﴾/License﴿ ﴾http://www.microsoft.com﴿ © 2015 Microsoft