Visual Studio Code
Introduction
Sumblime Text has the following features:
Fast navigation (Goto Anything)
Command palette (Command Palette)
Plugin API in Python
Simultaneous editing (Split Editing)
High degree of customisability (Customize Anything)
Sublime Text supports a large number of programming languages
and has syntax highlighting for C, C++, C#, CSS, D, Dylan,
Erlang, HTML, Groovy, Haskell, Java, JavaScript, LaTeX, Lisp, Lua, Markdown,
MATLAB, OCaml, Perl, PHP, Python, R, Ruby, SQL, TCL and XML.
In addition to the programming languages included by default,
users can download plugins to support other languages.
Sublime Text can be equipped with a package manager that allows
the user to find, install, update and remove packages without restarting the program.
The manager keeps the installed packages up to date by downloading new versions from repositories.
In addition, it provides commands to enable and disable installed packages.
Installation Visual Studio Code
Video tutorials
Installation Visual Studio Code
Creating files in Visual Studio Code
Elements of the Visual Studio Code window
Connecting the sidebar in Visual Studio Code
Choosing a colour scheme in Visual Studio Code
Package Controll
To follow the execution of commands you need to open the log window with
CTRL + ~
Then
CTRL + SHIFT + P
And enter
Package Controll
Video tutorial
VSC Text 3 - Package Control plugin
SideBarEnhancements
Shift + CTRL + P
Package Control: Install Package
SideBarEnhancements
Emmet CSS Snippets
Installation
Shift + CTRL + P
Package Control: Install Package
Emmet CSS Snippets
Enter the following command
h1{Heading text}+p*2(lorem27)
And press TAB
Result:
<h1>Heading text</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sapiente porro voluptatem rerum modi quibusdam accusantium nihil facere cupiditate quam! Ipsa unde repellendus officiis quo, cum obcaecati saepe!</p>
<p>Pariatur laudantium consequatur ratione quaerat reiciendis modi magnam voluptas ipsa, deleniti explicabo sequi aspernatur vitae, ut cumque nemo, tempore doloremque atque quia assumenda ipsam fugiat perspiciatis autem.</p>
As we can see, two paragraphs were created, which were automatically
filled with text of twenty-seven words each.
The second example. Enter the following command
p{Simple list}+ul.class1*>li.class1*7>a[href="#"](lorem2)
And press TAB
Result:
<p>Simple list</p>
<ul class="class1">
<li class="class2"><a href="#">Lorem ipsum.</a></li>
<li class="class2"><a href="#">Nulla, vero.</a></li>
<li class="class2"><a href="#">Nam, quasi!</a></li>
<li class="class2"><a href="#">Aut, alias!</a></li>
<li class="class2"><a href="#">Minima, laboriosam.</a></li>
<li class="class2"><a href="#">Laudantium, saepe.</a></li>
<li class="class2"><a href="#">Dolorum, at.</a></li>
</ul>
As we can see, inside the ul seven li a were created, which were automatically
filled with text of two words each.
Plugin documentation
docs.emmet.io
Video tutorial
VSC Text 3 - Emmet CSS Snippets
AdvancedNewFile
To open the command line, enter
CTRL + ALT + N
There you can enter the names of folders and files that you want to create. Specify file names
with a backslash \.
For example:
heihei.ru\index.html
Result:
Video tutorial
VSC Text 3 - AdvancedNewFile plugin
ColorPicker
I could not find
Video tutorial
VSC Text 3 - ColorPicker plugin
Columns
To split the window into several columns go to View → Layouts
Or press
ALT + SHIFT + 2
ALT + SHIFT + 3
And so on, depending on how many columns you want.
Commenting
To comment out a line hold
CTRL + /
Note lines 8 and 10
If you need to comment out a certain tag, especially when it comes to nested tags
CTRL + SHIFT + /
Note lines 13 to 21 - this is the commented-out ul tag
Multiple selection
To make the cursor active on several lines at once hold CTRL ALT and the up or down arrow
CTRL + ALT + ↑
To select the contents of a tag press
CTRL + SHIFT + A
Creating snippets
Tools → New Snippet
Insert the required code between the tags content
Uncomment tabTrigger and insert there the name of the snippet, which
you come up with yourself and will use later. The snippet has to be saved.
Now you can type the name of this snippet in the editor and press TAB
for all the required code to appear.
Video tutorial
VSC Text 3 - ColorPicker plugin
Article author: Andrei Olegovich