{"id":64,"date":"2026-04-10T08:07:24","date_gmt":"2026-04-10T08:07:24","guid":{"rendered":"https:\/\/gigz.pk\/html\/?post_type=lesson&#038;p=64"},"modified":"2026-04-22T11:47:40","modified_gmt":"2026-04-22T11:47:40","slug":"setting-up-environment-using-visual-studio-code","status":"publish","type":"lesson","link":"https:\/\/gigz.pk\/html\/index.php\/lesson\/setting-up-environment-using-visual-studio-code\/","title":{"rendered":"Setting Up Environment using Visual Studio Code"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">To start building web pages, you need a simple development environment. One of the most popular tools for this is Visual Studio Code. It is a free and lightweight code editor that helps you write and manage your code easily.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>What is Visual Studio Code<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Visual Studio Code is a code editor developed by Microsoft. It supports many programming languages, including HTML, CSS, and JavaScript. It provides useful features like syntax highlighting, auto-completion, and extensions.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 1: Download and Install<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Go to the official Visual Studio Code website and download the version for your operating system. After downloading, run the installer and follow the setup instructions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once installed, open Visual Studio Code on your computer.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 2: Create a Project Folder<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Create a new folder on your computer where you will store your website files. You can name it anything like &#8220;my-website&#8221; or &#8220;html-project&#8221;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Open this folder in Visual Studio Code by clicking on File and then Open Folder.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 3: Create Your First HTML File<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Inside your project folder, create a new file and name it index.html. This will be your main web page.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Make sure the file extension is .html so the browser can recognize it.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 4: Install Useful Extensions<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Visual Studio Code allows you to install extensions that make coding easier.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Some useful extensions for HTML development include Live Server and Prettier. Live Server helps you preview your website in the browser, and Prettier formats your code automatically.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 5: Start Writing Code<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Open your index.html file and start writing your HTML code. You can use shortcuts like typing &#8220;!&#8221; and pressing Enter to generate a basic HTML structure.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Save your file regularly while working.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 6: Preview in Browser<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To see your webpage, right-click on the file and open it in your browser, or use the Live Server extension to launch it automatically.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This allows you to see changes in real time as you edit your code.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Summary<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Setting up your environment with Visual Studio Code is simple and quick. Once everything is ready, you can start creating and testing your web pages efficiently.<\/p>\n\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1776858467903\"><strong class=\"schema-faq-question\"><\/strong> <p class=\"schema-faq-answer\"><\/p> <\/div> <\/div>\n\n\n<div class=\"yoast-breadcrumbs\"><span><span><a href=\"https:\/\/gigz.pk\/html\/\">Home<\/a><\/span> \u00bb <span class=\"breadcrumb_last\" aria-current=\"page\">HTML Fundamentals (Beginner) > Introduction to HTML > Setting Up Environment using Visual Studio Code<\/span><\/span><\/div>","protected":false},"menu_order":4,"template":"","class_list":["post-64","lesson","type-lesson","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Setting Up Environment using Visual Studio Code - HTML learning mastery<\/title>\n<meta name=\"description\" content=\"Learn how to set up an HTML development environment in Visual Studio Code with extensions, project setup, and live preview for beginners.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/gigz.pk\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Setting Up Environment using Visual Studio Code - HTML learning mastery\" \/>\n<meta property=\"og:description\" content=\"Learn how to set up an HTML development environment in Visual Studio Code with extensions, project setup, and live preview for beginners.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/gigz.pk\/\" \/>\n<meta property=\"og:site_name\" content=\"HTML learning mastery\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-22T11:47:40+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/setting-up-environment-using-visual-studio-code\\\/\",\"url\":\"https:\\\/\\\/gigz.pk\\\/\",\"name\":\"Setting Up Environment using Visual Studio Code - HTML learning mastery\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/#website\"},\"datePublished\":\"2026-04-10T08:07:24+00:00\",\"dateModified\":\"2026-04-22T11:47:40+00:00\",\"description\":\"Learn how to set up an HTML development environment in Visual Studio Code with extensions, project setup, and live preview for beginners.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/gigz.pk\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/gigz.pk\\\/html\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HTML Fundamentals (Beginner) > Introduction to HTML > Setting Up Environment using Visual Studio Code\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/#website\",\"url\":\"https:\\\/\\\/gigz.pk\\\/html\\\/\",\"name\":\"HTML learning mastery\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/gigz.pk\\\/html\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Setting Up Environment using Visual Studio Code - HTML learning mastery","description":"Learn how to set up an HTML development environment in Visual Studio Code with extensions, project setup, and live preview for beginners.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/gigz.pk\/","og_locale":"en_US","og_type":"article","og_title":"Setting Up Environment using Visual Studio Code - HTML learning mastery","og_description":"Learn how to set up an HTML development environment in Visual Studio Code with extensions, project setup, and live preview for beginners.","og_url":"https:\/\/gigz.pk\/","og_site_name":"HTML learning mastery","article_modified_time":"2026-04-22T11:47:40+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["WebPage","FAQPage"],"@id":"https:\/\/gigz.pk\/html\/index.php\/lesson\/setting-up-environment-using-visual-studio-code\/","url":"https:\/\/gigz.pk\/","name":"Setting Up Environment using Visual Studio Code - HTML learning mastery","isPartOf":{"@id":"https:\/\/gigz.pk\/html\/#website"},"datePublished":"2026-04-10T08:07:24+00:00","dateModified":"2026-04-22T11:47:40+00:00","description":"Learn how to set up an HTML development environment in Visual Studio Code with extensions, project setup, and live preview for beginners.","breadcrumb":{"@id":"https:\/\/gigz.pk\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/gigz.pk\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/gigz.pk\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/gigz.pk\/html\/"},{"@type":"ListItem","position":2,"name":"HTML Fundamentals (Beginner) > Introduction to HTML > Setting Up Environment using Visual Studio Code"}]},{"@type":"WebSite","@id":"https:\/\/gigz.pk\/html\/#website","url":"https:\/\/gigz.pk\/html\/","name":"HTML learning mastery","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/gigz.pk\/html\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/gigz.pk\/html\/index.php\/wp-json\/wp\/v2\/lesson\/64","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gigz.pk\/html\/index.php\/wp-json\/wp\/v2\/lesson"}],"about":[{"href":"https:\/\/gigz.pk\/html\/index.php\/wp-json\/wp\/v2\/types\/lesson"}],"wp:attachment":[{"href":"https:\/\/gigz.pk\/html\/index.php\/wp-json\/wp\/v2\/media?parent=64"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}