Why is Visual Studio Code Popular
https://www.zyxware.com/sites/default/files/styles/user_image/public/default_images/index.png?itok=2YmREnrP
BY glen.thomas
1 year ago
Visual-Studio-Code
0
comments comment

Nowadays text editors are used by software developers more frequently. Text editors have inbuilt features that help the user be productive and efficient. Each text editor has their own unique feature which makes them stand out when compared to another. Although there are many text editors only some of them have received good reviews from the user.

The popular ones are Atom, Sublime, Visual studio code, PhpStorm, Bracket. In the more recent times, Visual Studio has gained in popularity. This is mainly due to the fact that it is lightweight and contains many features. For this very reason, visual studio has become more popular compared to sublime in a very short time span. In this article, we’ll be exploring the various features of visual studio code.

Visual studio code

Visual studio code was developed by Microsoft. It is a lightweight code editor which uses less RAM when compared to PhpStorm. VS Code contains features like syntax highlighting, bracket-matching, auto-indentation, box-selection, snippets etc.

Code Debugging

vsc1.jpg

The main feature that makes Visual studio outstanding is the code debugging feature. It helps the user to find bugs or errors in their code by installing the appropriate extensions. It also has git support that enables the user to work with source control without leaving the editor.

vsc2.jpg

Visual Studio contains a feature by which you could install your keyboard shortcuts from other editors to your visual studio code editor. There are a number of extensions that can be downloaded and installed in various languages and for customizing the look of your vs code.

vsc3.jpg

Syntax Highlighting

This feature in visual studio code helps the user by highlighting the source code in different color which improves the code readability and saves time for the user.

Bracket-Matching

This feature will help easily identify where the corresponding closing parenthesis is for an opening parenthesis.

Auto-Indentation

Automatic tabbing adds correct indentation to your code which helps to increase the code readability.

Box-Selection

This feature allows the user to select a set of code that can be used to edit or delete all the lines at the same time which saves the user a lot of time.

Recommended Reading: How to Install Visual Studio Code PHP Debugger in Ubuntu


RELATED ARTICLE

close

on 29th January 2018 / by glen.thomas
Nowadays text editors are used by software developers more frequently. Text editors have inbuilt features that help the user be productive and efficient. Each text editor has their own unique feature which makes them stand out when compared to another. Although there are many text editors only some of them have received good reviews from the user. The popular ones are Atom, Sublime, Visual studio code, PhpStorm, Bracket. In the more recent times, Visual Studio has gained in popularity. This is mainly due to the fact that it is lightweight and contains many features. For this very reason, visual studio has become more popular compared to sublime in a very short time span. In this article, we’ll be exploring the various features of visual studio code. Visual studio code Visual studio code was developed by Microsoft. It is a lightweight code editor which uses less RAM when compared to PhpStorm. VS Code contains features like syntax highlighting, bracket-matching, auto-indentation, box-selection, snippets etc. Code Debugging The main feature that makes Visual studio outstanding is the code debugging feature. It helps the user to find bugs or errors in their code by installing the appropriate extensions. It also has git support that enables the user to work with source control without leaving the editor. Visual Studio contains a feature by which you could install your keyboard shortcuts from other editors to your visual studio code editor. There are a number of extensions that can be downloaded and installed in various languages and for customizing the look of your vs code. Syntax Highlighting This feature in visual studio code helps the user by highlighting the source code in different color which improves the code readability and saves time for the user. Bracket-Matching This feature will help easily identify where the corresponding closing parenthesis is for an opening parenthesis. Auto-Indentation Automatic tabbing adds correct indentation to your code which helps to increase the code readability. Box-Selection This feature allows the user to select a set of code that can be used to edit or delete all the lines at the same time which saves the user a lot of time. Recommended Reading: How to Install Visual Studio Code PHP Debugger in Ubuntu Visual Studio Code Text Editor Leave a reply Your email address will not be published. Required fields are marker *
close

on 30th January 2018 / by glen.thomas
Recommended Reading: Why is Visual Studio Code PopularHere are the six quick steps for installing the latest version of PHP Debugger in Ubuntu Install the php debug by Felix Becker extension from extensions Go to /etc/php/7.0/apache2 folder. Open the php.ini file using terminal using “sudo gedit php.ini” command Add these 2 lines at end of the file a. xdebug.remote_enable = 1 b. xdebug.remote_autostart = 1 Open the command terminal Run the “sudo apt-get install php-xdebug” command for installing the xdebug Restart the server using “sudo service apache2 restart” command PHP Debugger has been installed in visual studio code. Want to know more about our development services? Get in touch with us! Visual Studio Code PHP Debugger Ubuntu Leave a reply Your email address will not be published. Required fields are marker *
close

on 06th March 2018 / by harikrishna.ke…
Visual Studio Code is one of the most popular and lite editor software. This article describes how Drupal coding standards can be implemented in Visual Studio Code Editor. VS code (Visual Studio Code) has various plugins to help code. VS code also has plugins for checking coding standards. ’PHPCS', the linter plugin for Visual Studio Code provides an interface to PHP CodeSniffer. It is used with files that have the “PHP” language mode. Linter is any tool that detects and flags errors in programming languages, including stylistic errors. VS code has plugin for PHP CodeSniffer. How to setup Drupal coding standard in VS Code using PHP CodeSniffer To implement Drupal coding standard in VS code initially you have to install/update VS code to newest version in your system sudo apt-get install code Open VS code and install phpcs extensions from extension bar. CodeSniffer can be installed system wise by using pear and project wise using composer. For installing CodeSniffer we need pear in our system. Install pear if it isn’t installed already. sudo apt-get install php-pear Currently CodeSniffer version greater than 3.0 will not support the Drupal coding standard, so I prefer version 2.9.1, which is PHP_CodeSniffer-2.9.1. sudo pear install PHP_CodeSniffer-2.9.1 if you have already installed PHP_CodeSniffer version greater than 3.0, then uninstall that version by sudo pear uninstall PHP_CodeSniffer and install the version 2.9.1. Install composer if it is not installed yet sudo apt install composer Type composer in terminal to verify installation Install Coder (8.x-2.x) in your global Composer directory in your home directory. sudo composer global require drupal/coder Check installation location by composer global show -P Install dealerdirect/phpcodesniffer-composer-installer package sudo composer global require dealerdirect/phpcodesniffer-composer-installer Install CodeSniffer to composer sudo composer require --dev squizlabs/php_codesniffer Or you can simply edit the global composer.json file and update composer { “require”:{ “squizlabs/php_codesniffer”:”2.9.1”, “drupal/coder”:”^8.2” } } Set coder path sudo phpcs --config-set installed_paths [path of 'drupal/coder’]/coder_sniffer You can view the path by typing composer global show -P Usually path is ~/.composer/vendor/drupal/coder/coder_sniffer To see registered PHP CodeSniffer coding standards phpcs -i Set Drupal coding standard as default sudo phpcs --config-set default_standard Drupal Enable the phpcs plugin in the VS code and reload. To work in Drupal project, update the composer of the drupal project after all the above steps. composer update After updating you can see that in your project Drupal coding standard by CodeSniffer is installed. View your_project_directory/vendor/drupal/coder/coder_sniffer Then add array elements ‘default_stanedard’ => ‘Drupal’, 'installed_paths' => '../../drupal/coder/coder_sniffer/', to $phpCodeSnifferConfig array, which you can find in your_project_directory/vendor/squizlabs/php_codesniffer/CodeSniffer.conf The file should look like this. <?php $phpCodeSnifferConfig = array ( 'installed_paths' => '../../drupal/coder/coder_sniffer/', 'default_standard' => 'Drupal', ) ?> Now you can check out coding standard in VS code. An example picture is given. The red underline indication and the popup contain ‘[phpcs]’ shows coding standard error. Or we can simply type phpcs yourfile_name.php in terminal it will list out all the coding standard errors in the file. phpcs yourfile_name.php In Drupal, following coding standards is mandatory. By using Visual Studio Code Editor we can learn and understand Drupal coding standards while working on a project and it will also help to avoid mistakes in coding. PHP CodeSniffer Visual Studio Code Leave a reply Your email address will not be published. Required fields are marker *
Leave a reply
Your email address will not be published. Required fields are marker *

Filtered HTML

  • Web page addresses and email addresses turn into links automatically.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type='1 A I'> <li> <dl> <dt> <dd> <h2 id='jump-*'> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
The content of this field is kept private and will not be shown publicly.
CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.