Slider
Slider
Slider
Slider
Slider
Slider
Slider

WE ARE :: CODE HUB
We're Developers of "MB WEBBER'S"

We Works Fully Professionally & Gives Our Best To Get A Great Result

Web Development

We Developes Websites Fully Functional & Mobile Responsive

HTML-5

We Uses HTML-5 To Develop The Structure Of The Web Page

CSS-3

We Uses CSS-3 To Give Styling To The Web Page

Hosting

We Uses The Blogger Platform To Host Our Web-Pages For Free Of Cost

Motivational Quotes

By The Very Famous Developers

“Any fool can write code that a computer can understand. Good programmers write code that humans can understand.”

– Martin Fowler

“Sometimes it pays to stay in bed on Monday, rather than spending the rest of the week debugging Monday’s code.”

– Dan Salomon

“ Code is like humor. When you have to explain it, it’s bad.”

– Cory House

“Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program.”

– Linus Torvald

“When to use iterative development? You should use iterative development only on projects that you want to succeed.”

– Martin Fowler

Our Aim

We Are The Developers of MB WEBBER'S. We Know That Beginer Developers Suffers Due To The Lack of Proper Guidence and Syntax . This is Why We Decided To Create This Website To Help Them . Here We'll Provide All The Syntax To Become A Advance Developer From The Basics For FREE of Cost .



Our Experties

We Are Expart Of These Languages & We're Learning New Languages Too

HTML5
90%
CSS3
88%
JavaScript
77%
Python
84%

Blog

Friday 16 December 2022

How To Start Coding Journey On VS Code (Virtual Studio Code) As Beginner Coder/Developers ?

Hi Guys ! Welcome to the CODE HUB . We Are The Developers of  MB WEBBER'S . We know that beginner developers/coders suffers due to the lack of proper guidance and syntax . This is why we decided to create this website to help them . Here we'll provide all the syntax to become an advance developer from the basics for . Today I'll guide you step by step : How To Start Coding Journey On VS Code (Virtual Studio Code) As Beginner Coder/Developers ?

Visual Studio Code is one of the most popular and powerful text editors used by software engineers today.


I. Introduction


*What Are ‘Text Editors’?

Text editors, also called code editors, are applications used by developers to write code. They can highlight and format your code so that it’s easier to read and understand. It’s the area you write your code in.

Using a text editor is part of creating your “development environment,” the set of tools that you use for working on coding projects. Not only will this introduce you to tools that are commonly used by professional developers but it also means that you’ve grown as a developer and are ready to start working on your own—great work!

Specific to writing code, text editors provide a number of advantages:-
  • Language-specific syntax highlighting
  • Automatic code indentation
  • Color schemes to suit your preferences and make code easier to read
  • Plug-ins, or add-on programs, to catch errors in code
  • A tree view, or visual representation, of a project’s folders and files, so you can conveniently navigate your project
  • Key shortcuts, or combinations, for faster development
You may also have read or heard about IDEs, or “integrated development editors.” An IDE allows you to not only edit, but also compile, and debug your code through one application or interface. While the text editor we recommend isn’t considered an IDE, it has many IDE-like features that make life as a developer easier without needing a lot of resources that an IDE usually requires. The best of both worlds!


*Choosing A Text Editor

There are a number of text editors to choose from. For example, Visual Studio Code is one of the most popular text editors used by developers. (That’s Visual Studio Code and not Visual Studio, which is slightly different. We want the former, the one with ‘Code’ in the name.) Other popular text editors you may have heard of are Atom and Sublime Text.

Any of these text editors mentioned are great for development but to make things easier, we suggest you start off with Visual Studio Code. Some of the benefits of this editor are:-
  • Free to use
  • Open-source, (meaning a program’s code can be viewed, modified, and shared)
  • IDE-like features
  • Supported by a large community of users and Microsoft
When you are further along in your coding career, you can try other code editors to see what features work best with your personal development workflow.


II. Installing Visual Studio Code

So, we’ve chosen our text editor, now we just need to install it on our computer!


*Installation Steps

The installation process for computers running macOS, Windows, and Linux, (specifically Ubuntu and Debian), will be very similar and using Visual Studio Code across all of them will be the same.

1. Visit the Visual Studio Code website to download the latest version of Visual Studio Code. 



2. You should see your computer’s operating system displayed, but if it’s not correct, click on the down arrow and find the option that matches your operating system from the drop down menu and click on the down arrow icon under “Stable.”
  • Windows users: This will download the latest version of Visual Studio Code as an .exe file.
  • Mac users: This will download the latest version of Visual Studio Code for Mac as a .zip file.
  • Linux users: .deb and .rpm are different file types for storing data. We suggest you download the .deb file so auto-updates work as the Visual Studio Code documentation suggests.
3. Once the Visual Studio Code file is finished downloading, we need to install it. Find the Visual Studio Code file in your file manager, the program that lets you see the files and folders on your computer.
  • Windows users: Open the .exe file by clicking on it and on run the installer. Keep clicking ‘Next’ and then finally ‘Finish.’
  • Mac users: The downloaded .zip file should be in your ‘Downloads’ folder. Open the file. If you see this message choose “Open.”
  • Linux users: The downloaded file should be in your ‘Downloads’ folder.
Find it in your file manager, double click and choose ‘Install’ in the GUI software center, or run the following commands, one at a time, in the terminal.

sudo dpkg -i downloaded_filename.deb
sudo apt-get install -f

4. Make sure you have your Visual Studio Code application saved in a place you know you will easily be able to find it.
  • Windows users: It will automatically be placed in your Start menu.
  • Mac users: Click and drag the Visual Studio Code icon from the Downloads folder to the Applications folder.
  • Linux users: It should appear in your task bar of programs.
That’s it, you’ve successfully installed your text editor and are ready to start coding!


III. Practice: Use Visual Studio Code to start an off platform project

As you move through various lessons and paths here on CODE HUB you may find yourself needing to create a project on your own computer and not on the CODE HUB learning environment. This can be tricky, but it’s an exciting step that signals that you are ready to work independently.

To do this, we’ll need to use the text editor we installed above. Let’s take a moment to try out Visual Studio Code.


*What Are ‘Development Folders’?

Before using your text editor, it’s important to establish an organized file system. As the number and size of your projects grow, it becomes increasingly important to know where to save new projects and find old projects.

Most developers store their projects in an easy-to-find directory, (what you might be used to calling a ‘folder’). Here at CODE HUB we recommend naming this directory projects. It will store all of your coding projects. Whenever you create a new project, no matter how small, you should always make a new folder inside your projects directory. You will find that single-file projects can quickly turn into large, multi-folder projects.


*Practice : Let’s Make A Project

Below are the steps you need to follow to create a new folder for all of your programming projects. You will also learn how to load a new project folder into Visual Studio Code and make your very first “hello world” HTML project.


1. Make A Development Folder.

Navigate to a folder using your file manager or the terminal. Make sure it is a folder you visit regularly and will remember. Create a new folder called projects.
  • Mac users: This may be your User account or “Home” folder.
  • Windows users: You may want to save this on your C drive.
  • Linux users: You may want to save this in your User folder inside of the “Home” folder.
Inside the projects folder, create a new folder called HelloWorld. Everything you add to this folder will be part of your HelloWorld project.


2. Open Visual Studio Code

3. Open Your Development Folder

Click on the ‘Explorer’ icon on the left hand menu and click on the button ‘Open Folder’ and choose your development folder. This will launch your file manager.

Navigate to the HelloWorld folder and select Open. The folder will open in Visual Studio Code’s side pane. At this point, there should not be any contents in the folder. We’ll add a file in the next step.


4. Add A File

Before you learn how to add files to a project folder, it is important to understand the purpose of file extensions. A file extension is the suffix of a filename (the last 3 or 4 characters in a filename, preceded by a period) and describes the type of content the file contains. For example, the HTML file extension is .html, and it tells the browser (and other applications) to interpret the contents of the file as an HTML document. Once Visual Studio Code loads a project folder, you can add files. The steps below describe how to add files. Don’t worry about doing this on your own computer. We’ll get to that next.

In Visual Studio Code’s Explorer pane, click on your development folder’s name. You’ll see four icons appear to the right of the folder name. Click the ’New File’ icon. Type the new file’s name with its appropriate file extension ( for example, .html, .css, .csv). It is critical that you include the correct file extension, so programs like linters know how to interpret its contents. Press Enter when done.


5. Begin Coding!

Follow The boilerplate HTML code:-



Save your file often with the Auto Save feature and track changes with a version control system if you know how to use one. (To turn Auto Save on, click on ‘File’ then ‘Auto Save’. When it’s on, you’ll see a check mark next to ‘Auto Save’.) This will decrease the chances of losing unsaved work.

File Extensions& Syntax Highlighting

Syntax is the set of rules that tell us how to create correctly written code. Visual Studio Code and other text editors are able to interpret file extensions and provide language-specific syntax highlighting. Syntax highlighting is a tool for making code easier to read. Take a look at your index.html file. The text and tags are different colors. This is how Visual Studio Code highlights .html syntax. With each new language you learn, Visual Studio Code will highlight text in a way that makes your code easy to read. This may be different than other text editors and also different than the way your code is highlighted on CODE HUB.

Optional : Change The Color Scheme

Although Visual Studio Code comes with default syntax highlighting, you may want to change the colors used. Good color themes will make reading all those lines of code easy on your eyes. (Try out low contrast, dark themes like “Solarized Dark” or “Dracula Dark.”)

To do this, select Color Theme from the Welcome page when you first open Visual Studio Code, or click on Code in the menu bar at the top of your desktop window, then click on Preferences, followed by Color Theme. You can also search for color themes to install using the Extensions menu .


6. View Your HTML File In The Browser

At this point, your file is ready to be viewed in a web browser. The following steps should be taken outside of Visual Studio Code:

Navigate to the index.html file in your Hello World folder through your file manager or terminal.

Double click or open index.html . The page should open in your default web browser. Take second to marvel at your handiwork—you made your first project with Visual Studio Code.


7. Go Further With Visual Studio Code’s Features

If you already feel comfortable with the previous steps, explore the following features to further customize your development environment. You don’t need to use these suggestions to complete the projects on CODE HUB but they can help make you more efficient when writing code and are what make Visual Studio Code such a useful editor!

Debugging Code In The Editor: That’s right, you can run and test code from the editor!

Version Control: You don’t need to switch to the terminal on your computer to track changes with Git.

Integrated Terminal: You can run command line commands from your editor with Visual Studio Code.


IV. Wrapping Up

Congratulations! You’ve successfully set up your text editor and are ready to create websites on your own computer.

Happy coding!

Contact Us

Contact Form

Name

Email *

Message *

Created By SoraTemplates | Distributed By Gooyaabi Templates