Learning Outcome 1:: "Visual Studio Code"
Learning Outcome 1:: "Visual Studio Code"
SUBJECT:
WEB APPLICATION
TEACHER:
STUDENT:
1. Introduction ........................................................................................ 3
1.1 What is an IDE? ............................................................................. 4
2. Installation and features ..................................................................... 5
2.1 How to install VSCode in Windows 11? ...................................... 5
2.2 Some keyboard shortcuts........................................................... 8
2.2.1 Shortcuts for searching and navigating ............................. 8
2.1.2 Shortcuts for editing and refactoring ................................ 8
2.1.3 Shortcuts for debugging and testing ................................. 9
2.1.4 The most common shortcuts for use in the IDE .............. 10
2.1.5 Shortcuts for file management ........................................ 11
2.3 Home page ............................................................................... 12
2.4 Terminal, Debugging, Output, and Problems ........................... 17
2.4.1 Terminal .......................................................................... 17
2.4.2 Debugging ....................................................................... 18
2.4.3 Output ............................................................................. 19
2.4.4 Problems ......................................................................... 21
2.5 Some Extensions ...................................................................... 22
3. Conclusion ................................................................................ 26
4. Bibliography ............................................................................. 27
1. Introduction
Visual Studio Code is a source-code editor that can
be used with a variety of programming languages,
including C, C#, C++, Fortran, Go, Java, JavaScript,
Node.js, Python, Rust, and Julia. It is based on the
Electron framework, which is used to develop
Node.js web applications that run on the Blink
layout engine. Visual Studio Code employs the
same editor component (codenamed "Monaco") used in Azure DevOps
(formerly called Visual Studio Online and Visual Studio Team Services).
Out of the box, Visual Studio Code includes basic support for most
common programming languages. This basic support includes syntax
highlighting, bracket matching, code folding, and configurable snippets.
Visual Studio Code also ships with IntelliSense for JavaScript, TypeScript,
JSON, CSS, and HTML, as well as debugging support for Node.js. Support
for additional languages can be provided by freely available extensions
on the VS Code Marketplace.
Visual Studio Code was first announced on April 29, 2015, by Microsoft
at the 2015 Build conference. A preview build was released shortly
thereafter. On November 18, 2015, the source of Visual Studio Code was
released under the MIT License and made available on GitHub. Extension
support was also announced. On April 14, 2016, Visual Studio Code
graduated from the public preview stage and was released to the Web.
Microsoft released most of Visual Studio Code's source code on GitHub
under the permissive MIT License, while the binary releases by Microsoft
are freeware, and include proprietary code.
1.1 What is an IDE?
An IDE, or Integrated Development Environment, enables programmers
to consolidate the various aspects of writing a computer program. IDEs
increase programmer productivity by combining common activities of
writing software into a single application: editing source code, building
executables, and debugging. Some features of the IDEs are:
• This is the first screen you see when you launch the VSCode:
2.2 Some keyboard shortcuts
As one of the most popular code editors available today, VS Code offers
a plethora of powerful features and tools that can significantly
streamline the coding process. One of the most valuable features of VS
Code is its extensive set of keyboard shortcuts that allow developers to
perform common tasks quickly and efficiently.
2.2.1 Shortcuts for searching and navigating.
• Ctrl + Q: Displays Visual Studio Search
• Ctrl + T: Displays the Go To All tool
• Ctrl + -: Navigates backward between opened documents in the
current session
• Ctrl + Shift + -: Navigates forward between opened documents in the
current session
• F12: Navigates to a class definition
• Alt + F12: Allows you to view and edit the code of a class in a pop-up
window, from the code file you are writing.
• Ctrl + F12: Navigates to the implementation of a member in a class
• Ctrl + Shift + F12: Moves to the next error line when the error list
window is open and more than one error is listed
• F8: Navigates forward in the list of results of the current window
• Shift + F8: Navigates backward in the list of results of the current
window
Menu
Minimap
Editor
Activities
Bar
Panel
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 five
fundamental areas:
• Editor - The main area to edit your files. You can open as many
editors as you like side by side vertically and horizontally.
• Primary Side Bar - Contains different views like the Explorer to assist
you while working on your project.
• Status Bar - Information about the opened project and the files you
edit.
• Activity Bar - Located on the far left-hand side, this 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 in the same state it was in when
you last closed it. The folder, layout, and opened files are preserved.
Open files in each editor are displayed with tabbed headers (Tabs) at the
top of the editor region. To learn more about tabbed headers, see the
Tabs section below.
Minimap
A Minimap (code outline) gives you a high-level overview of your source
code, which is useful for quick navigation and code understanding. A
file's minimap is shown on the right side of the editor. You can click or
drag the shaded area to quickly jump to different sections of your file.
Breadcrumbs
The editor has a navigation bar above its contents called Breadcrumbs.
It shows the current location and allows you to quickly navigate between
folders, files, and symbols.
Breadcrumbs always show the file path and if the current file type has
language support for symbols, the symbol path up to the cursor position.
You can disable breadcrumbs with the View > Show Breadcrumbs toggle
command. For more information about the breadcrumbs feature, such
as how to customize their appearance, see the Breadcrumbs section of
the Code Navigation article.
Explorer
Explorer is used to browse, open, and manage all the files and folders in
your project. VS Code is file and folder based - you can get started
immediately by opening a file or folder in VS Code. After opening a folder
in VS Code, the contents of the folder are shown in Explorer. You can do
many things from here:
Multi-selection
You can select multiple files in the File Explorer and OPEN EDITORS view
to run actions (Delete, Drag and Drop, Open to the Side) on multiple
items. Use the Ctrl/Cmd key with click to select individual files
and Shift + click to select a range. If you select two items, you can
now use the context menu Compare Selected command to quickly diff
two files.
Note: In earlier VS Code releases, clicking with the Ctrl/Cmd key
pressed would open a file in a new Editor Group to the side. If you would
still like this behavior, you can use
the workbench.list.multiSelectModifier setting to change
multi-selection to use the Alt key.
Outline view
The Outline view is a separate section in the bottom of the File Explorer.
When expanded, it will show the symbol tree of the currently active
editor. The Outline view has different Sort By modes, optional cursor
tracking, and supports the usual open gestures. It also includes an input
box which finds or filters symbols as you type. Errors and warnings are
also shown in the Outline view, letting you briefly see a problem's
location.
Activity Bar
The Activity Bar on the left lets you quickly switch between Views. You
can also reorder Views by dragging and dropping them on the Activity
Bar or remove a View entirely (right click Hide from Activity Bar).
2.4 Terminal, Debugging, Output, and Problems
2.4.1 Terminal
Visual Studio Code includes a full featured integrated terminal that starts
at the root of your workspace. It provides integration with the editor to
support features like links and error detection. The integrated terminal
can run commands such as mkdir and git just like a standalone terminal.
• From the menu, use the Terminal > New Terminal or View > Terminal
menu commands.
• From the Command Palette (Ctrl+Shift+P), use the View: Toggle
Terminal command.
• In the Explorer, you can use the Open in Integrated Terminal context
menu command to open a new terminal from a folder.
• To toggle the terminal panel, use the Ctrl+` keyboard shortcut.
• To create a new terminal, use the Ctrl+Shift+` keyboard shortcut.
2.4.3 Output
The Output window displays status messages for various features of the
integrated development environment (IDE). To open the Output
window, from the menu bar, choose View>Output or press Ctrl+Alt+O.
Toolbar
The following controls are displayed in the Output window toolbar.
Go to previous message
Changes the focus of the output window to the previous compilation
error and moves the insertion point in the code editor to the line
containing that compilation error.
Clear All
Deletes all text in the Output pane.
Output panel
The output pane selected in the Show results from list displays the
output from the specified source.
2.4.4 Problems
• More filters: In this section, the problems will appear filtered by:
• Collapse All: Collapse All is Fold All in Visual Studio Code. Press Ctrl
+ K + S for All Settings. Assign a key which you want for Fold All. By
default, it is Ctrl + K + 0.
• View As Table: Show all the errors in a table.
• Minimize/Maximize Panel Size.
• Close Panel.
2.5 Some Extensions
These extensions unlock the true potential of VS Code, elevating it to a
whole new level of functionality and productivity. Here are some of
them, classified as:
To Improve productivity
There are numerous VS Code extensions available for Python that can
significantly improve your productivity as a developer. Here are five of
the most popular ones: