12 VS Code Extensions to INCREASE Productivity 2024

Devression
14 Feb 202427:13

Summary

TLDRThis video script discusses the importance of a healthy coding environment for productivity and quality of work. It introduces various extensions for Visual Studio Code (VS Code) that are essential for a computer science student or any programmer. The extensions covered include Code Runner for quick testing, Tabnine for AI coding assistance, Live Server for real-time web development, Excel Viewer for viewing spreadsheets, Code Tour for presenting code walkthroughs, To-Do Highlights for task management, Material Icon Theme for aesthetic improvement, Draw IO for UML diagramming, Polar Code for code snippet presentation, Code Spell Checker for identifying errors, Prettier for code formatting, and Vibrancy for a sleek visual upgrade. The video aims to enhance the viewer's VS Code experience and productivity.

Takeaways

  • 🚀 To optimize productivity, a healthy coding environment is crucial for programmers.
  • 💻 The video recommends using Visual Studio Code (VS Code) as the preferred IDE for its versatility and features.
  • 🔍 The 'Code Runner' extension is highlighted for its ability to streamline the process of running code snippets, saving time and effort.
  • 🌟 'Tab 9' is introduced as an AI coding assistant that provides real-time suggestions and can even write code based on user input.
  • 🌐 'Live Server' is essential for web developers, allowing them to see their code changes in real-time directly in the browser.
  • 📊 The 'Excel Viewer' extension is useful for data scientists and analysts, enabling them to view Excel spreadsheets directly within VS Code.
  • 🎥 'Code Tour' helps in creating walkthroughs of code, which is beneficial for presentations or explaining code to others.
  • 📌 'To-Do Highlights' assists in keeping track of tasks or comments that need attention within the codebase.
  • 🎨 'Material Icon Theme' adds an aesthetic touch to the IDE by providing better-looking icons for files and folders.
  • 📐 'Draw IO' is a game-changer for creating UML diagrams directly within VS Code, eliminating the need for external tools.
  • 🖌 'Polar Code' is a tool for presenting code snippets professionally, with customizable backgrounds and formatting options.
  • ✅ 'Code Spell Checker' helps identify and correct spelling mistakes in code comments, preventing potential errors and improving code quality.

Q & A

  • What is the main topic of the video?

    -The main topic of the video is about the best Visual Studio Code (VS Code) extensions that can optimize productivity and quality of work for programmers.

  • What are the three things needed to follow the video?

    -To follow the video, one needs a computer or laptop that can turn on, an internet connection for browsing the web, and an Integrated Development Environment (IDE) like VS Code.

  • What is the first VS Code extension discussed in the video?

    -The first VS Code extension discussed is 'Code Runner', which automates the process of compiling and running code.

  • How does Code Runner streamline the coding process?

    -Code Runner streamlines the coding process by automatically compiling and running code, eliminating the need for manual compilation and execution commands in the terminal.

  • What is 'Tabnine' and how does it assist in coding?

    -Tabnine is an AI coding assistant that suggests code snippets in real-time based on what the programmer is typing, making it easier to write and complete code faster.

  • What is 'Live Server' and why is it essential for web developers?

    -Live Server is an extension that allows web developers to simultaneously code and see the changes reflected in a live browser preview, making it easier to调试 and test web applications in real-time.

  • How does the 'Excel Viewer' extension benefit data scientists and analysts?

    -The 'Excel Viewer' extension allows users to view and interact with Excel spreadsheets directly within VS Code, which can be beneficial for data scientists and analysts who need to visualize and work with data without switching between applications.

  • What is 'Code Tour' and how does it help in presenting code?

    -Code Tour is an extension that enables users to create guided tours of their code, highlighting specific sections, and providing comments to walk others through the code's functionality or structure, which is useful for presentations or code reviews.

  • What does the 'To-Do Highlights' extension do?

    -The 'To-Do Highlights' extension highlights comments marked with 'todo' or 'fix me' (in capital letters) in bright colors, making it easier to identify and address unfinished tasks or issues within the code.

  • Why is 'Draw IO' considered a game-changing extension?

    -Draw IO is considered a game-changing extension because it allows users to create UML diagrams and other diagrams within VS Code itself, without needing to use separate diagramming software, thus streamlining the development process.

  • What is 'Polar Code' and how does it enhance code presentation?

    -Polar Code is an extension that helps present code snippets in a professional and visually appealing format, similar to a Polaroid picture. It allows users to export code snippets as images with customizable backgrounds and transparency settings.

  • How does the 'Code Spell Checker' extension help in preventing errors?

    -The 'Code Spell Checker' extension identifies and underlines incorrectly spelled words in the code, offering quick fixes or suggestions for corrections, which helps prevent compilation errors and improves code quality.

  • What is the purpose of the 'Prettier' extension?

    -The 'Prettier' extension is an automatic code formatter that ensures consistent and properly structured code formatting, making the code more readable and easier to maintain, especially in collaborative projects.

  • What effect does the 'Vibrancy' extension have on the VS Code interface?

    -The 'Vibrancy' extension applies a glass-like, transparent design effect to the VS Code interface, enhancing its aesthetics and providing a more visually pleasing coding environment.

Outlines

00:00

📌 Introduction to Optimizing Coding Environment with VS Code Extensions

The paragraph introduces the importance of a healthy coding environment for productivity and work quality. It sets the stage for discussing the best VS Code extensions used by a full-time computer science student. The video requires a computer or laptop, an internet connection, and an IDE like VS Code. The speaker shares a personal favorite extension, Code Runner, which simplifies the process of compiling and running Java programs, streamlining the development workflow.

05:01

🛠️ Enhancing Coding with AI and Live Server Extensions

This paragraph delves into the installation and use of two VS Code extensions: Tab 9, an AI coding assistant, and Live Server, essential for web developers. Tab 9 offers real-time code suggestions and an AI chat feature for generating code snippets. Live Server allows simultaneous coding and previewing of web projects in a browser, enabling real-time updates and easy styling adjustments.

10:01

📊 Viewing Data in VS Code with Excel Viewer and Presenting Code with Code Tour

The speaker discusses the Excel Viewer extension for viewing spreadsheets within VS Code, beneficial for data scientists and analysts. Another extension, Code Tour, is introduced for presenting code walkthroughs. It allows users to record and navigate through comments in the code, providing an interactive and educational experience for viewers.

15:02

📝 Managing To-Do Lists in Code with To-Do Highlights and Aesthetic Enhancements

This section covers the To-Do Highlights extension for managing and highlighting to-do comments in the code. It also touches on the Material Icon Theme extension for aesthetically enhancing file icons in VS Code. The speaker emphasizes the importance of both practical and visual aspects of the coding environment.

20:04

🎨 Creating UML Diagrams with Draw.IO and Presenting Code Snippets with Polar Code

The speaker introduces Draw.IO for creating UML diagrams within VS Code, streamlining the process before coding begins. Polar Code is highlighted for presenting code snippets professionally. The extensions cater to different aspects of development, from planning and visualization to presentation and code sharing.

25:04

🔍 Spell Checking in Code and Formatting with Prettier

The paragraph discusses the Code Spell Checker extension for identifying and correcting spelling mistakes in code, preventing compilation errors. The Prettier extension is introduced for automatic code formatting, ensuring clean and readable code. These tools help developers maintain code quality and save time on formatting tasks.

✨ Enhancing Visual Aesthetics with Vibrancy and Wrapping Up the Video

The final paragraph introduces Vibrancy, an extension for a glass-morphism design in VS Code, enhancing the visual appeal of the development environment. The speaker then concludes the video by summarizing the discussed extensions and encouraging viewers to suggest more, like the video, and subscribe to the channel.

Mindmap

Keywords

💡VS Code

VS Code, or Visual Studio Code, is a free and open-source code editor developed by Microsoft. It is highly customizable with extensions and supports a wide range of programming languages, making it a popular choice among developers. In the video, VS Code is the primary tool discussed for enhancing productivity and coding environment through various extensions.

💡Extensions

Extensions are add-ons that enhance the functionality of a software application, like VS Code. They can provide new features, improve existing ones, or integrate with other tools and services. In the context of the video, the presenter shares their favorite VS Code extensions that improve coding efficiency and experience.

💡Productivity

Productivity refers to the efficiency and effectiveness with which tasks are completed. In the context of programming, productivity can be influenced by the tools and environment used. The video focuses on how certain VS Code extensions can optimize a programmer's productivity by streamlining common tasks and providing intelligent suggestions.

💡Code Runner

Code Runner is a VS Code extension that allows users to run code snippets or entire files directly within the editor. It supports multiple programming languages and simplifies the process of compiling and executing code, which can significantly speed up development and testing workflows.

💡Tabnine

Tabnine is an AI-powered coding assistant extension for VS Code that provides intelligent code completions based on the context of the code being written. It helps developers write code faster and with fewer errors by suggesting the most likely code completions as they type.

💡Live Server

Live Server is a VS Code extension that allows for live reloading of web pages during development. When changes are made to the code, the browser automatically refreshes to display the updated content, which is particularly useful for web developers to see the results of their changes in real-time.

💡Excel Viewer

Excel Viewer is a VS Code extension that enables users to view and interact with Excel spreadsheets directly within the editor. This can be beneficial for data scientists and analysts who need to work with data without switching between applications.

💡Code Tour

Code Tour is a VS Code extension that allows developers to create guided tours or walkthroughs of their code. It is useful for code presentations, demonstrations, or when onboarding new team members, as it provides a step-by-step explanation of how the code works.

💡To-Do Highlights

To-Do Highlights is a VS Code extension that visually emphasizes to-do comments or tasks within the code. It helps developers to easily identify and track tasks that need attention, such as fixes or improvements, by highlighting them with a distinct color.

💡Material Icon Theme

Material Icon Theme is a VS Code extension that enhances the appearance of file and folder icons within the editor, giving them a more modern and aesthetically pleasing design. It is part of the broader Material Design language and aims to improve the overall look and feel of the development environment.

💡Draw.IO

Draw.IO, now integrated as diagrams.net, is a free, open-source diagram software that allows users to create and share various types of diagrams, including UML diagrams, flowcharts, and network diagrams. In the context of the video, the Draw.IO extension for VS Code enables developers to create diagrams directly within the editor, which can be particularly useful for visualizing the structure of a project before coding.

💡Polar Code

Polar Code is a VS Code extension that allows developers to present their code snippets in a visually appealing and professional format, similar to a Polaroid picture. It offers features like background customization and transparency adjustments, making it ideal for sharing code with others in a polished manner.

💡Code Spell Checker

Code Spell Checker is a VS Code extension designed to identify and correct spelling mistakes within code comments and strings. By integrating a dictionary and spell-checking capabilities, it helps developers maintain clear and professional code, reducing the risk of errors and improving code readability.

💡Prettier

Prettier is an opinionated code formatter that automatically formats code to adhere to a consistent style. It supports multiple programming languages and integrates with editors like VS Code to ensure that code is formatted correctly upon saving. Prettier helps maintain a clean codebase and can reduce the time spent on formatting tasks.

💡Vibrancy

Vibrancy is a VS Code extension that applies a translucent, glass-like effect to the editor's user interface. It enhances the visual aesthetics of the development environment by allowing colors from the desktop wallpaper to shine through the editor's panels, providing a more vibrant and personalized look.

Highlights

The importance of a healthy coding environment for optimizing productivity and work quality.

Introduction to Visual Studio Code (VS Code) as a preferred IDE for programming.

The necessity of three things for the video: a computer, internet connection, and an IDE like VS Code.

Installing and using the Code Runner extension for efficient Java program execution.

The ease of use provided by Code Runner in streamlining the Java compilation process.

Installing the Tabnine AI coding assistant for real-time code suggestions.

The process of signing in to Tabnine and linking it with VS Code.

Using Tabnine to generate code snippets and streamline coding tasks.

The Live Server extension for real-time web development and instant preview of changes.

Excel Viewer extension for viewing Excel spreadsheets directly within VS Code.

Code Tour extension for creating guided walkthroughs of code projects.

To-Do Highlights extension for emphasizing and managing tasks within the code.

Material Icon Theme extension for enhancing the aesthetics of VS Code file icons.

Draw IO extension for creating UML diagrams within VS Code for project visualization.

Polar Code extension for presenting code snippets in a professional format.

Code Spell Checker extension for identifying and correcting spelling errors in code.

Prettier extension for automatic code formatting and structuring.

Vibrancy extension for a visually appealing, glass-like interface in VS Code.

The video's purpose of showcasing essential VS Code extensions for computer science students and developers.

Transcripts

play00:00

whether you guys have just started out

play00:01

on your programming Journey or you've

play00:02

been coding for a little while now you

play00:04

may have come to realize that a healthy

play00:05

coding environment is essential for

play00:07

optimizing your productivity and quality

play00:09

of work that is why today we're going to

play00:11

be looking at the best vs code

play00:12

extensions that I use in my day-to-day

play00:14

work as a full-time computer science

play00:16

student you're only going to need three

play00:18

things in this video a computer or a

play00:20

laptop that has the ability to turn on

play00:22

an internet connection that allows you

play00:23

to browse the web and an IDE also known

play00:25

as an integrated development environment

play00:27

in this specific video we'll be using vs

play00:29

code you may have come across it before

play00:31

it's quite an underground application

play00:33

it's my personal favorite so that's what

play00:34

we're going to roll with I'll leave a

play00:35

link in the description for you guys if

play00:37

you want to download that bad boy once

play00:38

you have downloaded and installed set

play00:40

application you'll be met with a welcome

play00:42

page which is very nice close that

play00:44

ASAP cuz you will not be needing it so

play00:46

the first thing that you guys are going

play00:47

to want to do is head over to the

play00:48

extension section here it looks like a

play00:50

little window and we're going to type in

play00:52

code runner in the search bar there all

play00:54

right now that will pop up and it'll be

play00:56

the first one with 24.5 million

play00:58

downloads at this time and then you'll

play01:00

see it's got 4 and 1 half Stars so it's

play01:02

trusted it's a very good extension and

play01:04

you'll notice this little play icon

play01:06

appears up here so what we're going to

play01:07

do is we're going to test it out right

play01:08

now so I've got this little test Java

play01:10

file here um I'm going to drag it in as

play01:13

you can see it's just a simple hello

play01:14

world program and then I'm going to

play01:16

navigate my way up here and then click

play01:18

the play button now you'll notice that

play01:21

hello world is output down the bottom

play01:23

here so what vs code is doing here is

play01:24

instead of manually needing to compile

play01:26

our classes in our Java file it just

play01:29

automatically comp compiles them for us

play01:30

when we click that run button and then

play01:32

it will print that output for us as well

play01:34

so what happens usually in order to

play01:35

compile a Java class is you need to open

play01:37

up a terminal and use the Java C command

play01:39

to actually compile that class and then

play01:41

after that use the Java command to

play01:43

actually run the application so as you

play01:45

can see it's a bit of a tedious progress

play01:47

if we wanted to do that over and over to

play01:48

check changes quickly in our program so

play01:50

what code Runner does is it streamlines

play01:52

that process and makes it a lot easier

play01:54

for us to quickly check what our program

play01:56

is outputting and I would say that is

play01:57

the most essential vs code extension for

play02:00

me so I 100% recommend you guys add that

play02:02

right

play02:04

now so this is basically going to be our

play02:07

little AI coding assistant it's

play02:08

basically going to read what we're

play02:10

typing in real time and suggest things

play02:11

that it thinks that we want to type out

play02:13

in our code so what you're going to want

play02:14

to do here is press the install button

play02:17

and you'll notice here down at the

play02:18

bottom we're going to get a little popup

play02:20

that says sign in to use tab 9 so we'll

play02:23

click that and then open it up in our

play02:25

web browser I'm using Safari for this

play02:26

tutorial but you can use what you like

play02:28

then we're going to need to sign up and

play02:30

create an account and then go ahead and

play02:32

click that create account button then

play02:34

we're going to get a little prompt here

play02:35

saying that we need to sign in using an

play02:37

authentication token so what we're going

play02:39

to do here is copy this token after you

play02:41

guys have copied that token we're going

play02:42

to go back to our vs code and we're

play02:44

going to open up our Command pallet so

play02:46

we're going to do this by pressing

play02:47

command shift p on Mac or control shift

play02:50

p on Windows and then we're going to

play02:52

type in tab 9 sign in using or token and

play02:56

then we're just going to click sign in

play02:57

here and then we will get a prompt here

play02:59

telling us to enter our or token so make

play03:01

sure you paste that authentification

play03:02

token inside the prompt there and then

play03:04

press enter and then you'll notice after

play03:06

that we get a little notification down

play03:08

here saying that we are signed in now

play03:10

you may also notice that there's a red

play03:12

exclamation mark down here you'll just

play03:13

want to click that and it'll open up our

play03:15

tab 9 Hub in our vs code and it's just

play03:18

telling us that we need to verify our

play03:20

email so make sure you go inside of your

play03:22

emails and verify that really quickly as

play03:25

you can see I go into my gmail here I go

play03:27

and I see I've got a new email from tab9

play03:29

I click it and then there is an option

play03:31

to verify now after I click that it'll

play03:34

send me to this web page here notifying

play03:36

me that I have verified my email address

play03:39

after that navigate your way back to vs

play03:40

code and you'll notice that that red

play03:42

notification telling you to activate

play03:43

your email address should have

play03:45

disappeared if it hasn't just wait a

play03:47

little bit longer and it should

play03:48

disappear and then after that we are

play03:50

ready to use tab n so what you're going

play03:52

to want to do is create a new file or

play03:54

drag in an existing file I've just

play03:56

created this file test. Java on my

play03:58

desktop here and I'm dragging that in

play04:00

it's completely blank so we're starting

play04:01

from scratch I'm going to create a class

play04:03

called test and then we're going to wrap

play04:06

that here in parenthesis so you'll

play04:07

notice that as we go to the next line in

play04:09

our code tab 9 is already suggesting

play04:11

what it thinks we're going to want to

play04:12

write next in our code so in Java the

play04:15

first thing you need to do is create the

play04:16

main method and that's what it's

play04:17

suggesting that we do here so the way

play04:19

that it works is it suggests what it

play04:21

thinks we're going to write next and

play04:23

then we can choose to press the Tab Key

play04:26

and that autocompletes the suggestion

play04:28

for us if we don't want want to write

play04:30

what it's suggesting to us we just keep

play04:31

on typing what we were going to type

play04:33

originally so you'll see here that it's

play04:35

suggesting to me to write a

play04:37

system.out.print line method with the

play04:39

text hello world but I actually don't

play04:41

want to do that for this particular

play04:43

program so what I'm going to do is just

play04:44

write what I was going to originally

play04:46

write instead so I'm going to declare an

play04:48

INT variable here I'm going to call it I

play04:50

and I'm going to make it equal to zero

play04:52

and then you'll actually notice it

play04:53

suggests a while loop here for us so it

play04:56

has the complete while loop already

play04:57

typed out for us all we need to do is

play04:59

press tab if we want that code to be

play05:01

generated so what's going to happen in

play05:02

this simple program is it's going to

play05:04

check if I is less than 10 and if it is

play05:06

we're going to print out I and then

play05:08

we're going to increment the value of I

play05:10

by 1 so we should get an output of 0 1 2

play05:13

3 4 5 6 7 89 on individual lines and so

play05:18

what we're going to do is we're going to

play05:19

navigate up here to the top right hand

play05:20

section of our vs code and click our run

play05:22

button and then you'll notice that our

play05:24

program is outputting as expected now

play05:26

you're probably thinking that's a really

play05:27

cool feature that tab 9 has but there's

play05:30

one more thing that makes it even cooler

play05:31

so what we're going to do is we're going

play05:33

to navigate our way down to this panel

play05:34

on the left here and you should see this

play05:36

icon that's popped up since we've

play05:38

installed tab 9 so this is the tab 9

play05:41

logo and what we're going to do we're

play05:42

just going to click on it here and

play05:43

you'll notice it opens up an AI chat

play05:45

feature I'm going to type something in

play05:47

here like write me a Hello World program

play05:50

this is very simple but just for the

play05:52

purpose of this video I'm going to be

play05:53

showing you what it's going to do so as

play05:55

you can see it generates us some code

play05:57

here and what we're going to do is

play05:58

actually click that insert button there

play06:00

and it'll automatically copy and paste

play06:02

that code into our environment here into

play06:04

our file and I'm just going to remove

play06:06

the public keyword here cuz we don't

play06:07

need it it's a very small file that

play06:09

we're working with so once we've done

play06:10

that we're going to save our file and

play06:12

then we're going to click our run button

play06:14

up here okay now we should get an output

play06:16

that says hello world so you'll see that

play06:18

the code generated by tab 9 Works um you

play06:21

know it's not faulty there's not any

play06:23

bugs not any bugs that I've come across

play06:24

in my time sometimes you have to change

play06:26

a few things like I had to do there I

play06:28

had to remove the public keyword in

play06:29

order to get it to run just Tinker with

play06:31

it a little bit you'll find that it

play06:32

works 99% of the

play06:35

time now I know that a lot of my

play06:37

subscribers are web developers so this

play06:38

next extension is very cool we're going

play06:40

to go into our extension tab here and

play06:42

type in Live server now this is a very

play06:44

cool extension and absolutely essential

play06:46

if you guys want to be professional web

play06:48

developers so install that right now if

play06:50

you haven't already and down the bottom

play06:51

you'll notice that we get a little popup

play06:53

here that says go live so what that's

play06:56

going to do is it's basically going to

play06:58

allow us to simultane ously code and see

play07:00

what the changes we make in our code are

play07:03

in our actual browser so what I'm going

play07:04

to do here is open up a project that

play07:06

I've been working on this is the

play07:07

previous tutorial that I put up on my

play07:09

channel now when I'm in my index.html

play07:11

file and I click that go live button

play07:13

you'll notice that the program that I've

play07:14

been working on is going to open up in

play07:16

my web browser and I don't manually have

play07:18

to open up the index.html file from the

play07:21

actual folder that I'm working in so

play07:23

that's really cool now you'll notice

play07:24

here I'm going to go back in and I'm

play07:26

actually going to remove the stylesheet

play07:28

from my program so I'll just comment it

play07:30

out now and then I'll make sure that I

play07:32

save my file and then I'll go back into

play07:34

my web browser and you'll notice that

play07:36

straight away after saving the file all

play07:38

my styling will be removed from my

play07:40

program it allows you to preview your

play07:41

project in real time you don't have to

play07:43

continually save the file and then open

play07:45

it back up in your web browser close it

play07:47

again save the file it just

play07:49

automatically does that for you when you

play07:51

save your file in your IDE so that's

play07:53

very cool highly recommend that now

play07:55

let's move on to the next

play07:58

one this next extension is very useful

play08:01

for data scientists or data analysts

play08:03

have you ever been programming in vs

play08:04

code or your IDE and you wish that you

play08:06

could just view your Excel spreadsheet

play08:08

inside of vs code without having to

play08:09

navigate to a completely different

play08:11

application well this extension does it

play08:13

for you so let me show you what happens

play08:14

when we actually drag an Excel file into

play08:17

vs code without having this extension

play08:19

installed okay as you can see I've got

play08:20

this employee sample data here I'm going

play08:22

to drag that into my vs code and then

play08:24

we'll get a warning message here that

play08:26

says the file is not displayed in the

play08:28

text editor because it is either binary

play08:30

or uses an unsupported text encoding I'm

play08:32

just going to click this button here

play08:33

that says open anyway and just select

play08:35

text editor here now this is what our

play08:38

spreadsheet looks like inside vs code

play08:40

right now so as you can see this is

play08:41

completely useless we can't use any of

play08:43

this data we can't see any of it even so

play08:46

what I'm going to do here is navigate

play08:47

over to my extension Tab and I'm going

play08:49

to type in Excel viewer inside the

play08:51

search bar here okay now it's going to

play08:53

be the first extension that pops up here

play08:55

by grape City and all we're going to do

play08:56

is install it okay and then we're going

play08:58

to go back here and we're going to drag

play09:00

our employee sample data back in and

play09:02

look what happens we have a beautiful

play09:04

spreadsheet displayed in our vs code

play09:06

without any errors we can see our data

play09:08

nicely formatted so that is the beauty

play09:10

of this extension guys if you're a data

play09:12

scientist or a data analyst this is such

play09:14

a powerful tool it helps you visualize

play09:16

your data without actually having to

play09:18

navigate from vs code back to excel back

play09:21

to vs code and so forth and I highly

play09:23

recommend that if you guys are studying

play09:25

data science or data analytics make sure

play09:27

you have this extension installed on

play09:29

your vs

play09:31

code so this next extension is very cool

play09:34

as well if you guys are needing to

play09:35

present your code or you know just show

play09:37

a walk through of how your code Works

play09:39

whether it be to employees or your

play09:42

friends family whoever this is a very

play09:44

cool extension that you guys can install

play09:46

it is called code tour so it's going to

play09:48

be this one here by Jonathan Carter so

play09:50

Props to him for creating this extension

play09:52

it's very cool what we're going to do is

play09:54

just install that here and then we're

play09:56

going to drag in a project that I am

play09:58

actually working on at the moment uh you

play09:59

guys can drag in any project I'm just

play10:01

using this for the sake of the tutorial

play10:03

and you'll see after we've installed our

play10:05

code tour extension we'll have this

play10:06

little code to a tab in our Explorer of

play10:09

our vs code here now what we can do here

play10:11

is open up any file it can be a HTML

play10:14

file CSS you know javascripts SQL

play10:17

whatever you want um and we're going to

play10:19

click this button down here record tour

play10:22

now we're going to get a prompt up the

play10:23

top here that says specify the title of

play10:25

the tour or save it to a specific

play10:27

location so this is just naming our tour

play10:29

I'm going to call it HTML tour for now

play10:31

and you'll notice that a new tour is

play10:32

created down here on our left now just

play10:34

for this example say that I wanted to

play10:36

explain to somebody what the body

play10:38

section of my HTML was doing okay so

play10:40

instead of commenting what each line

play10:42

does I can actually go to the line in my

play10:44

code here and I can click the plus

play10:46

symbol over here on the left now a

play10:47

prompt will pop up asking us to type a

play10:50

new comment so for this example I'm just

play10:52

going to type in create div container to

play10:56

hold contents on notet taking app now

play10:59

what I'm going to do is go down here and

play11:00

click add step to tour and you'll notice

play11:03

we get a popup here and it is the start

play11:06

of our tour so this is going to be the

play11:07

first step the first point of our tour

play11:10

if you will and you'll see we've got our

play11:12

comment there and it's going to be step

play11:13

one of one all right so what I can do to

play11:15

exit that is just click this little

play11:17

arrow here and then we'll go to the next

play11:18

line and create another step so I'm just

play11:20

going to write second step of our

play11:23

program and click add step to tour now

play11:26

you'll notice that there is also a

play11:27

previous button here that pops up this

play11:29

navigates our way back to the previous

play11:31

step that we just created which was

play11:32

creating our div container and then you

play11:34

can click next to go to step two of our

play11:37

tour and as you can see the steps also

play11:39

appear over here on the left in our

play11:41

Explorer let's go to this line here and

play11:43

create a new comment creating list

play11:45

header and you'll notice that we have

play11:47

another step that appears on the left

play11:48

here in our Explorer now I'm going to

play11:50

create another step and just say use

play11:52

icon from font awesome and then I'm

play11:54

going to add that step to the tour as

play11:56

well you'll notice we get that added

play11:58

down the bottom in our Explorer now

play11:59

let's run through our code tour from the

play12:01

start so I'm going to close that and

play12:03

then I'm going to click HTML tour here

play12:05

and then I'm going to go to the first

play12:06

step and then I'm going to click next

play12:09

and that's going to go to step two and

play12:10

it's going to navigate to that line step

play12:12

three and then I'm going to click next

play12:14

again and you'll notice that each time I

play12:16

go through these steps we just get a

play12:18

little tick here as we've completed them

play12:19

and then I'm going to go to my fourth

play12:21

step here you'll see step number four of

play12:23

four and then I can click either

play12:25

previous and go back and look at the

play12:27

different steps that I've created if I

play12:28

want to review them again or just finish

play12:30

tour there now you'll see that the green

play12:32

tick appears at the top of our tour and

play12:34

that means we have finished we can

play12:35

always redo it again you can do it as

play12:37

many times as you want now you'll notice

play12:38

that we can also edit the steps here as

play12:40

well so once you've created them it's

play12:42

not set in stone you guys can edit the

play12:43

comments so that's a very cool feature

play12:45

as

play12:49

well so this next extension is very cool

play12:52

we're going to go to our search bar here

play12:53

and type in to-do and then we're going

play12:55

to click the first one here called to-do

play12:57

highlights we're just going to click the

play12:58

install button there and then afterwards

play13:00

just open a file of you're choosing it

play13:02

can be any file you want now you'll see

play13:04

in my Javascript file here I have a

play13:06

function called Update note okay say I

play13:08

need to do something later on inside of

play13:10

my uh Update note function to change it

play13:12

or something you know we need to uh we

play13:14

need we need to alter it somehow so what

play13:16

most people would do when they first

play13:17

start out programming is they'll put a

play13:19

comment above the function that they've

play13:21

written or inside the function just to

play13:23

remind them that they need to do

play13:24

something later on whether they need to

play13:26

alter it fix it whatever they need to do

play13:28

just to get it working they'll write a

play13:29

comment there just to remind them now by

play13:31

all means this is a great thing to do

play13:33

but the problem with this is in large

play13:34

scale projects your comments can get

play13:36

lost in your code very very easily so

play13:39

with this extension to-do highlight

play13:41

what's going to happen is we're just

play13:42

going to use a keyword to-do here and

play13:45

then we're just going to put a coal in

play13:46

and then afterwards we're going to write

play13:48

our comment so you'll notice there that

play13:50

our to-do section is going to be

play13:52

highlighted in a bright yellow now this

play13:54

is very beneficial because when you're

play13:55

scrolling through a lot of code you can

play13:57

easily Miss like like a lot of comments

play13:59

so when you see this big bright yellow

play14:01

highlighted text appear you'll be like

play14:03

oh yep there's my comment and then

play14:05

you'll be able to go and fix it

play14:06

accordingly now if for any reason you

play14:08

don't like that bright yellow color you

play14:09

can also use a bright reddish color and

play14:12

you can use that by typing fix me in

play14:15

capital letters and then a colon and

play14:17

then write your comment after that and

play14:19

now your comment has a nice red

play14:20

highlighted section there that stands

play14:22

out now if for any reason this extension

play14:24

is not working as expected like you

play14:26

can't see the highlighted section appear

play14:28

what we're going to do is open up our

play14:29

Command pallet on our vs code so on Mac

play14:32

this is command shift p and then on

play14:34

Windows it's control shift p and then

play14:37

what we're going to do is we're just

play14:38

going to type in toggle H now you'll

play14:41

notice this little popup here that says

play14:42

to do highlight toggle highlight make

play14:44

sure you click that so in this example

play14:47

I've already got it set up so you can

play14:48

see that my comments are highlighted but

play14:50

if I toggle H here in my command palet

play14:52

and press enter you'll notice that the

play14:54

highlighted section disappears so when

play14:56

you first install the extension just

play14:57

make sure that you go into your command

play14:59

pet and type in toggle H and press enter

play15:02

just to ensure that the extension is

play15:03

working as

play15:06

predicted the next extension is not so

play15:08

much productive as it is decorative I'm

play15:10

just including it because I like my vs

play15:12

code to look aesthetic and clean and I

play15:14

think that incorporating this extension

play15:16

just adds to the overall aesthetic of

play15:18

the development environment so basically

play15:20

how it works is I've got a few files

play15:22

open here you can see index.html

play15:24

script.js and style.css now the icons

play15:27

that represent those files look okay but

play15:30

they don't look amazing we can make them

play15:32

look a whole lot better and we can do

play15:34

this by going to our extension section

play15:36

here and we'll just type in material

play15:38

icon now it's going to be the first one

play15:40

that pops up by Philip Keefe and we're

play15:42

just going to install that one here okay

play15:44

and it's going to prompt us to select a

play15:46

theme once we have and we're just going

play15:47

to make sure that we select our material

play15:49

icon theme now if I close that and go

play15:51

back to Explorer here inside of our

play15:54

folder our index.html file our script.js

play15:57

and our style do CSS files all have

play16:00

really cool icons next to them and

play16:02

they'll also appear up the top there in

play16:03

the tab section so I think that just

play16:05

looks a whole lot nicer than the

play16:07

built-in vs code icons that they provide

play16:09

uh you don't have to do this like I said

play16:11

before but I just think it adds to the

play16:12

overall Aesthetics of the

play16:16

program this next extension is an

play16:18

absolute Game Changer if you guys have

play16:20

created a large or medium scale project

play16:22

you'll know that creating a uml diagram

play16:25

is one of the most beneficial things you

play16:26

can do before you even start coding now

play16:29

in order to create these diagrams you

play16:30

need to use a completely different piece

play16:32

of software or a web application to do

play16:34

so now whilst that is great and they're

play16:36

very powerful tools if you guys just

play16:37

want something really quick to use this

play16:40

is one of the best extensions that I

play16:41

have ever come across so what we're

play16:43

going to do here is we're going to

play16:44

navigate over to our extension tab here

play16:46

and we're going to type in draw IO we're

play16:48

going to click on the first one here and

play16:50

just install it and then I'm going to go

play16:51

over here into my folder I'm going to

play16:53

create a new file and I'm just going to

play16:55

call it drawing. draw iio so what's very

play16:58

important here is that you guys add the

play17:00

draw IO extension otherwise this won't

play17:02

work and now as soon as we do so you'll

play17:04

notice that an offline version of draw

play17:06

iio will appear inside of our vs code

play17:09

and I can go down into the general tab

play17:11

here and drag this rectangle in I can

play17:13

drag this cylinder in here and then I

play17:15

can also drag in this line and I can

play17:18

connect the rectangle to the cylinder I

play17:20

can then make that cylinder as big as I

play17:23

want it to be and then I can label it

play17:25

database for example and then I can

play17:27

label the rectangle up here server so

play17:30

this is just a quick diagram linking our

play17:32

database to our server you can do a

play17:34

whole lot of other things too you can

play17:36

link classs lists whatever you guys want

play17:39

you can also change the colors of all

play17:41

these different shapes as well so make

play17:42

it nice and appealing and once you

play17:44

finished creating your diagram you can

play17:45

go to the file section here and then

play17:47

click export and then you can export

play17:49

your file as an SVG file a PNG file or a

play17:52

drawer IO file so I use this extension

play17:55

all the time guys it's very useful

play17:57

before you're starting each of your

play17:58

projects to create a diagram just to

play18:01

visualize the overall structure without

play18:02

having to chop and change between

play18:04

different programs so having everything

play18:06

in vs code just helps

play18:10

tenfold this next extension is super

play18:12

cool essentially what it allows you to

play18:14

do is produce really high quality code

play18:16

Snippets if you have a snippet of code

play18:18

that you need to show to somebody and

play18:20

you need to present it in a professional

play18:21

manner this is a really good tool to

play18:23

help you with that so the extension is

play18:25

called polar code all right now it's

play18:26

basically a Polaroid for your code that

play18:29

is their tagline if you will but what

play18:31

you want to do is make sure that you

play18:32

don't install the first one that pops up

play18:34

you want to install the 2022 version so

play18:37

the original version actually had a lot

play18:38

of bugs and it ended up breaking back in

play18:40

2019 so make sure you guys install that

play18:43

cuz it is the actual working version and

play18:45

is up to date next I'm going to navigate

play18:47

my way to my script.js file and I'm just

play18:50

going to bring up my command pallette

play18:52

inside of my command pet I'm going to

play18:54

type in polar code and then press enter

play18:57

and you'll notice that our polar code

play18:58

extension pops up here on the right so

play19:00

as you can see we're presented with this

play19:01

snippet of code that just outlines how

play19:03

we use the extension so what I'm going

play19:05

to do here is just make this a little

play19:06

bigger and I'm going to highlight my

play19:09

close popup function here okay now

play19:11

you'll see as soon as I highlight it in

play19:13

real time it will be converted over into

play19:15

our polar code extension here and we can

play19:17

see a preview of our code snippet now we

play19:19

have two options here Shadow and

play19:21

transparent if I click Shadow I can

play19:23

toggle the Shadow on and off and then if

play19:25

I click transparent I can toggle the

play19:28

transparency on and off so if I want a

play19:30

nice little background there I can uh

play19:32

turn the transparency off and then

play19:34

choose a color for the background I'm

play19:35

just going to use this nice purple color

play19:37

now we'll click this little icon down

play19:39

here and this allows us to export our

play19:40

code in the form of a PNG file and then

play19:43

as soon as I click save you can see that

play19:44

it gets sent to my desktop here and I

play19:46

can open it up and I've got this

play19:48

beautifully formatted piece of code

play19:50

that's ready to be presented to anybody

play19:51

of my choosing so I would highly

play19:53

recommend that you guys install this

play19:54

extension especially if you present your

play19:56

code to people quite often

play19:59

now this next extension can be an

play20:01

absolute Lifesaver what I'm going to do

play20:03

to demonstrate how useful this extension

play20:05

can be is I'm just going to drag this

play20:07

test. Java file off my desktop into my

play20:10

vs code and then as you can see I have

play20:12

this simple test class here inside we've

play20:14

got our main method and then we have a

play20:16

Boolean declared here called B and it's

play20:18

equal to false and then we just have a

play20:20

simple if statement okay so if B is

play20:22

equal to false then we print out bullan

play20:25

is false and then if B is equal to

play20:27

anything else which it can only be equal

play20:29

to true then we're going to Output

play20:31

Boolean is not false now you may notice

play20:33

a couple of issues in our code here

play20:35

pause the video and see if you can spot

play20:37

them so if you guys did notice when

play20:38

we've declared our Boolean variable here

play20:40

our Boolean keyword is spelled

play20:41

incorrectly it's meant to be b l e a an

play20:44

instead of b o l e a an so when we

play20:47

compile our code in a second here we're

play20:48

going to come across an error that could

play20:50

have been avoided if we had this

play20:51

extension installed you'll also notice

play20:53

that in our first print line function

play20:55

here we've got a sentence that has a

play20:56

word spelled incorrectly while this

play20:58

particular spelling error won't actually

play21:00

stop our program from running it's very

play21:02

important that we do fix these

play21:03

especially if you guys are deploying

play21:05

this in a professional workspace as you

play21:07

can see here when we run our code we

play21:08

have a compilation error on line four of

play21:10

our Java file now this is good we've

play21:12

identified the error and we can go fix

play21:14

it accordingly but what would be really

play21:16

nice is if we never had to encounter

play21:18

this error in the first place so what

play21:19

I'm going to do here is I'm going to go

play21:20

over to my extensions and I'm going to

play21:22

type in code spell checker now it's

play21:24

going to be the first one that pops up

play21:25

here by Street side software and you're

play21:28

going to do is click that install button

play21:29

now let's go back to our Java file here

play21:31

and the first thing that we're going to

play21:32

notice is our Boolean keyword is

play21:34

underlined blue now much like Microsoft

play21:36

Word and many other applications this

play21:38

extension is able to identify which

play21:40

words are spelled incorrectly inside of

play21:42

our code and it will let us know what

play21:44

needs to be fixed you'll also notice

play21:46

here that in our print line function it

play21:47

has correctly identified that the word

play21:49

false has been spelled incorrectly so

play21:51

what we can do now is we can hover over

play21:53

our Boolean keyword that's spelled wrong

play21:55

and we can click Quick Fix and what it's

play21:57

going to do is is it's going to suggest

play21:58

us words that it thinks that we were

play22:00

going to type out so as you can see

play22:01

we've got bullion here the second from

play22:03

the top and if we click that then it'll

play22:05

just quickly change our Boolean keyword

play22:07

to be spelled correctly if you don't

play22:09

want to use that quick fix function you

play22:10

can just manually type it out like I've

play22:12

done here as well now you can see here

play22:13

when we run our code we have a perfect

play22:15

output with zero errors you'll see

play22:17

Boolean is false as output here because

play22:19

B is equal to false so whilst this is a

play22:22

very basic extension it is extremely

play22:23

helpful and saves you a lot of time

play22:25

especially when you're coming across a

play22:27

lot of compilation

play22:30

errors so the next extension on our list

play22:33

is called prettier what this is is an

play22:35

automatic code formatter so when you

play22:37

guys are writing your code you want to

play22:38

make sure that you format it and

play22:39

structure it correctly good formatting

play22:41

is beneficial for multiple reasons

play22:43

including optimizing the readability of

play22:45

your code so when you're working on a

play22:46

project with multiple other people you

play22:48

want to make sure that they can read and

play22:49

comprehend the code that you've written

play22:51

without any issues this extension is

play22:53

fantastic for doing exactly that it

play22:55

takes all the formatting worry away and

play22:57

just automatically does it itself so

play22:59

what I'm going to do is drag in this

play23:00

test JavaScript file here and you can

play23:02

see I've got these three functions now

play23:04

while these functions are empty they're

play23:05

formatted terribly so what we're going

play23:07

to do we're going to head over to our

play23:08

extensions panel here and we're going to

play23:10

type in prettier it's going to be the

play23:12

first one that pops up so we're going to

play23:13

install that there and then what we're

play23:15

going to do is we're going to head down

play23:16

to our settings here what we're going to

play23:18

do is type in format on Save and we're

play23:21

going to make sure that that is ticked

play23:23

this is going to ensure that every time

play23:24

we save a file inside of our vs code

play23:27

it's automatically going to be formatted

play23:29

now the next thing we're going to do is

play23:30

we're going to open up our Command pet

play23:32

and we're going to type in preferences

play23:33

open user settings now what we're going

play23:36

to do is we're going to go back into our

play23:37

extension tab here and we're just going

play23:39

to copy this snippet of code into our

play23:40

settings. Json file so just highlight

play23:43

that copy it and then over here in our

play23:45

settings. Json file we're going to add a

play23:47

comma at the end here of our format on

play23:49

Save then we're going to paste in the

play23:51

code snippet that we copied from our

play23:52

extension and then make sure that you

play23:54

save the settings file now we're going

play23:55

to go back into our test Javascript file

play23:58

here we're going to go file and then

play23:59

save and then straight away you're going

play24:01

to notice that our code is formatted

play24:03

beautifully into this nice nested

play24:04

structure so that is the beauty of this

play24:06

extension it worries about all the

play24:08

formatting and structuring of your code

play24:09

for you leaving you guys more time to

play24:11

focus on the project that you're working

play24:15

on okay so the last extension on our

play24:17

list is called vibrancy so much like our

play24:19

icons extension this is very much

play24:21

decorative it doesn't really have any

play24:23

other purpose besides making sure that

play24:24

your vs code looks immaculate so in your

play24:26

extension search bar type in vibrancy

play24:29

and then it's going to be the second one

play24:30

that pops up now let's have a look here

play24:32

in the description of the extension now

play24:34

when you install this extension you're

play24:35

going to receive an error code in the

play24:36

bottom right hand side of your vs code

play24:38

that says your code installation appears

play24:40

to be corrupt please reinstall now the

play24:42

developer of this extension has

play24:44

acknowledged this error they've told us

play24:46

that the warning is safe to disregard

play24:47

and all changes can be reverted now if

play24:49

you click on the Cog wheel and select

play24:51

don't show again you'll never see that

play24:53

error message pop up when you start up

play24:54

your vs code now one of the most

play24:56

important things that you guys need to

play24:57

do before you install this extension is

play25:00

make sure that your theme is set to dark

play25:02

plus so whatever theme that you guys

play25:03

have right now in your vs code make sure

play25:05

that you revert it back to the default

play25:07

theme which is dark plus so after you

play25:09

guys have reverted the theme back to

play25:10

dark plus it is safe to install our

play25:12

theme so what we're going to do is click

play25:14

the install button on vibrancy continued

play25:16

and then we're going to open our Command

play25:17

pallet and type in reload vibrancy after

play25:20

you've selected that we'll get a

play25:21

notification in the bottom right hand

play25:23

corner here that says vibrancy enabled

play25:25

restart to take effect so what we're

play25:27

going to do is click that there and it's

play25:29

just going to close our vs code for us

play25:30

and restart it accordingly now when it

play25:33

pops up we've got this nice glass

play25:34

morphism kind of design here and you'll

play25:37

also see here in the bottom right hand

play25:38

corner we received that warning that we

play25:40

were talking about earlier all we're

play25:41

going to do is click that settings

play25:43

button and then click don't show again

play25:45

so there's nothing to worry about as the

play25:46

developer said in their description the

play25:48

only reason that it's popping up is that

play25:50

it's editing the vs codes built-in CSS

play25:53

so as you can see we've got that nice

play25:54

glass look that we were after and we can

play25:56

use this with any other theme that we've

play25:58

also installed in our vs code so I'm

play26:00

going to go back and I'm going to change

play26:01

my theme to pale Knight which was what I

play26:03

was running before in my vs code so

play26:04

you'll see that I can actually use the

play26:06

vibrancy continued theme and my pale

play26:08

Knight theme at the same time so you

play26:10

guys don't have to say goodbye to

play26:11

whatever theme that you were using

play26:12

originally so what I'm going to do to

play26:14

Showcase how nice this extension makes

play26:16

your vs code look is I'm going to change

play26:18

the background on my desktop to

play26:19

something a little bit more vibrant so

play26:21

I've chosen this really nice vibrant

play26:23

wallpaper and you can see all the colors

play26:25

are coming through the back of our vs

play26:26

code now so that is really nice it gives

play26:28

that nice transparent look that glass

play26:30

morphism kind of design and like I said

play26:32

before this is purely decorative so it

play26:34

doesn't really add any benefit to your

play26:35

vs code besides making it look pretty

play26:37

but I just like it so I highly recommend

play26:39

that you guys add this extension it

play26:41

looks really nice all right guys that

play26:43

brings us to the end of the video I hope

play26:45

this helped you guys out a lot these are

play26:47

the vs code extensions that I've been

play26:49

using in my day-to-day Life as a

play26:50

computer science student there are

play26:52

plenty more extensions that I could list

play26:54

in this video but for me these are the

play26:55

ones that I use the most if you guys

play26:57

want to suggest any that I haven't put

play26:58

in the video please make sure to comment

play27:00

them down below and while you're at it

play27:02

you might as well smash that like button

play27:03

and please subscribe to the channel it

play27:05

helps out a lot I hope you guys are

play27:07

having an amazing 2024 so far and I

play27:09

can't wait to see you in the next

play27:11

video

Rate This

5.0 / 5 (0 votes)

Etiquetas Relacionadas
VS CodeProductivityCode RunnerTabnineLive ServerExcel ViewerCode TourTo-Do HighlightsMaterial IconsDraw.IOPolar CodeCode Spell CheckerPrettierVibrancyProgrammingWeb DevelopmentData AnalysisEducationalStudent GuideSoftware ToolsCode FormattingAI AssistantInteractive LearningProject ManagementVisual AidsPresentation Tools
¿Necesitas un resumen en inglés?