Thursday 21 March 2019

Most Commonly Used Shortcut in Visual Studio Code


Here is a list of most popular used Shortcuts in Visual Studio Code:


Command Shortcut
Ctrl + Shift + P Open Command Palette
Ctrl + Shift + ` Open a Terminal
Ctrl + Shift + N Open a New Window
F11 Toggle FullScreen.
Ctrl + G Go to Line
Ctrl + P Go To File.
Ctrl + / Insert Comment
Ctrl + F Format the selected Code
F12 Go to the declaration of th Keyword.
Ctrl + Space Trigger Suggestion.

You can refer to this Cheat Sheet over here for a full list of Shortcuts.

How to open a new terminal in Visual Studio Code.



  • Go to Terminal > New Terminal
  • Select the current workspace directory for the Terminal. The terminal will be opened in the working directory that you selected.
  • Alternatively, You can press the shortcut Ctrl + Shift + ` and select a workspace directory.
  • Refer to the screenshot below for reference.

How to Open a file in Visual Studio Code

Here is a step by step guide to install a file in Visual Studio Code:

  • Go to File > Open File
  • Type the name of the file or Browse to a particular file.
  • Alternatively, you can press the shortcut Ctrl + P
  • And Type the name of the file in the Search Bar.
  • You can refer to the GIF below for further reference.


Tuesday 19 March 2019

How to install a Extension in Visual Studio Code

Here is a clip regarding how to install an Extension in Visual Studio Code:



Here is a full list of steps of how to install an extension in Visual Studio COde:
  •  Go to extensions tab in the left-hand side
  •  Enter the name of the Extension you want to install in the Search Bar.
  •  Click install under the name of the Extension
  •  It will take some time to install the extension
  •  After installing you can check the extension under ENABLED tab below EXTENSIONS

Saturday 16 March 2019

Visual Studio Code: Introduction

Visual Studio Code is a rich source code editor which can run on any platform including Windows, macOS, and Linux. It has built-in support for different languages like JavaScript, TypeScript, and Node.js and it also has different extensions for different languages like C++, C#, Java, Python, PHP, Go like for example here is an extension named PHP Debug which helps in debugging in PHP. You can explore different extensions here
Advantages and Disadvantages of Visual Studio Code.

Advantages

  • Vast resources for extensions - The major advantage of the Visual Studio Code is that it has a vast amount of extensions which can be found here.
    So if you want support for any languages you can choose from a vast range of extensions and you don't need a separate editor for a different language.
  • IntelliSense - IntelliSense is a term for code-completion aid that includes a number of features: List Members, Parameter Info, Quick Info, and Complete Word. So having IntelliSense in your code editor is a big advantage when you are learning to program or developing software for your own needs.
Disadvantages

  • It crashes a lot while building large projects.
  • With its vast rich set of extensions, it is not beginner friendly as a beginner might find it difficult to get a difficult time figuring out how things work.
  • Debugging needs to be easier. Debugging might take a long time plus it might be a difficult time for a beginner to debug his code depending on the project.