How To Create And Deploy A VSCode Extension

Поділитися
Вставка
  • Опубліковано 2 сер 2024
  • Visual Studio Code is so amazing because of all the great extensions it has to offer. Sometimes, though, the extension you need is not available so you need to create it yourself. In this video I will show you how to create your very own VSCode extension and how to deploy it so anyone can download it.
    📚 Materials/References:
    GitHub Code: github.com/WebDevSimplified/v...
    Async/Await Tutorial: • JavaScript Async Await
    🌎 Find Me Here:
    My Blog: blog.webdevsimplified.com
    My Courses: courses.webdevsimplified.com
    Patreon: / webdevsimplified
    Twitter: / devsimplified
    Discord: / discord
    GitHub: github.com/WebDevSimplified
    CodePen: codepen.io/WebDevSimplified
    ⏱️ Timestamps:
    00:00 - Introduction
    00:34 - Setup
    06:34 - Creating A Command
    08:28 - Writing Extension
    18:02 - Publishing Extension
    #VSCode #WDS #Extension

КОМЕНТАРІ • 124

  • @CodeWithTomi
    @CodeWithTomi 3 роки тому +53

    I've been waiting for this video... Because I know it will be simplified here☺️

    • @AMP_PLUS
      @AMP_PLUS 3 роки тому +1

      TOMI!!!! REMEMBER ME ;)))))

  • @JenuelDev
    @JenuelDev 3 роки тому +6

    I just realized this is the only channel where I can easily understand what you are talking about, SUBSCRIBED!

  • @BrianKapellusch
    @BrianKapellusch 3 роки тому +17

    I started building extensions for some of my clients about a year ago, and I was pretty amazed at how easy it is to get one up and running. There always seemed like a barrier to entry when it came to building Visual Studio (not Code) extensions.
    But now I feel like we're getting to the point where there needs to be frameworks or at least patterns for building larger vs code extensions. Or perhaps even vscode extensions to help to build other vscode extensions.
    I know I've saved my clients a fair bit of money by utilizing extension points like diagnostics to provide custom warnings and errors for things that simple linting rules can't catch. But as those extensions have gotten bigger, I've really had to focus organizing that code so that I and the others who will ultimately maintain it don't get lost.

    • @Mr_Addy1
      @Mr_Addy1 8 місяців тому

      hey are u still active i wanna know can we open the link of the blogs in the vs code itself

  • @hsjeevan
    @hsjeevan 6 місяців тому +2

    I was able to create my own extension and publish it to the marketplace.
    Appriciate all the effort that goes around making such informational videos.
    Thanks WDS!

  • @aqua7897
    @aqua7897 3 роки тому +4

    You are a true JS master, I can’t wait for your course!

  • @CodingNuggets
    @CodingNuggets 3 роки тому +24

    I always see Ben making these extensions and wondered a little about how it's done. Now you come along and teach me how to do it Kyle. Thanks. See you soon!

    • @zafaris
      @zafaris 3 роки тому +3

      Exactly! Ben Awad is the CEO of making VS Code extensions 🤣

    • @maksimhristov3904
      @maksimhristov3904 3 роки тому +7

      Ben did a tutorial on how to make vs code extension

    • @CodingNuggets
      @CodingNuggets 3 роки тому +2

      @@maksimhristov3904 Guess I missed it. I'll have to look back.

  • @zafaris
    @zafaris 3 роки тому +4

    I was thinking how someone would make a VS Code extension and then you upload this video! I know this is gonna be great 🤩👍🏽

  • @thisissyedbasim
    @thisissyedbasim 3 роки тому +2

    You literally have a video on whatever I need 🥰. Thank you so much Kyle

  • @laurenzrausche2387
    @laurenzrausche2387 3 роки тому +2

    Hey Web Dev Simplified,
    I‘m that guy with the git repository. I‘ve always wanted to make a vscode Extension, but i dont want to watch the whole 3h of it. Thank you so much for your tutorials

  • @xdanier4872
    @xdanier4872 3 роки тому +2

    A very clear and concise introduction

  • @jonasboon3702
    @jonasboon3702 Рік тому +1

    Great video! I was able to make my first VS Code extension watching it. Thanks!

  • @pranavjain9799
    @pranavjain9799 2 роки тому +1

    This is an incredible video. It helped me make my first extension!

  • @lesmatheson6001
    @lesmatheson6001 2 роки тому +1

    Appreciate your focus on packing the video with meat and removing filler. I like when I have to hit pause frequently to try things out -- talking fast is not a problem.

  • @dawid_dahl
    @dawid_dahl Рік тому +2

    Great and straight to the point. Thanks! 🙏🏻

  • @RobDuarte
    @RobDuarte Рік тому +1

    This is such a great tutorial - thanks!

  • @sinwookdo5083
    @sinwookdo5083 Рік тому +14

    If not, replace it with the code below.
    10:56
    const { XMLParser, XMLBuilder, XMLValidator} = require("fast-xml-parser");
    11:18
    const parser = new XMLParser();
    console.log(parser.parse(res.data));

    • @ambroseleung4730
      @ambroseleung4730 Рік тому +5

      Thanks for that. For others wondering why this works - it's because fast-xml-parser made breaking changes from v3 to v4.
      You can also install the package again with: npm i fast-xml-parser@3

  • @insaneviruss
    @insaneviruss Рік тому +1

    Thanks mate! This was helpful

  • @vrindatyagi6744
    @vrindatyagi6744 3 роки тому +1

    THANKYOU SO MUCH I SUCCESSFULLY MADE THIS TODAY!

  • @lofistudio9652
    @lofistudio9652 3 роки тому +1

    I had this curiosity this morning

  • @proflead
    @proflead 2 місяці тому

    Thanks for sharing! I should try!

  • @OndrejPopp
    @OndrejPopp Рік тому

    Tx for the intro!

  • @kavilivishnu2258
    @kavilivishnu2258 3 роки тому +1

    Thank you very much for the tutorial sir! My projects are all hosted on Netlify. I'm not able to get the XML format as you got for your blog page, sir. What should I do to get the same format?

  • @othmane8954
    @othmane8954 3 роки тому

    hey Kyle, nice video !
    I have some sound issues sometimes, it goes really low for a sec or two, then go back to normal volume, and again ! (juste in this video in particular)
    Have a nice day

  • @RudraprasadMohapatraa
    @RudraprasadMohapatraa 5 місяців тому

    Thank You Sir. Love and Support from Bharat (India).

  • @hammasshahid3566
    @hammasshahid3566 3 роки тому +3

    Great video kyle! Can you show how to make chrome extensions next? It will be very helpful for me since i really like your teaching style 😊

  • @arvindkumar-ug1zf
    @arvindkumar-ug1zf Рік тому

    Thanks for amazing video

  • @ShubhamAttri-rw2bg
    @ShubhamAttri-rw2bg 3 місяці тому

    Helpful

  • @neozoid7009
    @neozoid7009 2 роки тому +2

    Awesome tutorial , I have a Question Can I make and use a extension personally without publishing or uploading in vs code market place ??

  • @sairfan06
    @sairfan06 Рік тому

    Thanks for a great tutorial, I want to know can we publish locally for installing extension for personal use only?

  • @luckyvanilla388
    @luckyvanilla388 3 роки тому +2

    Maybe awkward but love your voice and the way you speak 😅

  • @elihappinesspie
    @elihappinesspie 2 роки тому +2

    What I had to do differently to make this work in typescript:
    1. You have to invoke the .default thingy for axios. "const axios = require('axios').default;"
    2. You have to import the XMLParser like this: "import { XMLParser } from 'fast-xml-parser';"
    3. You then have to instantiate a parser from the XMLParser constructor, like this: "const parser = new XMLParser();"
    4. THEN you can use the xml parser like this: "const articles = parser.parse(res.data)"
    5. You have to declare article as any, like this: "const article : any = await vscode.window.showQuickPick..."

  • @jieqiangwei7569
    @jieqiangwei7569 2 роки тому

    can we use addEventListener or keyboardevent in vscode extension? I basically need to execute sth if user press a specific key.

  • @AlThePal78
    @AlThePal78 2 роки тому

    How would I edit the code because I want to do some other stuff to it updated my extension

  • @SuboptimalEng
    @SuboptimalEng 3 роки тому +8

    ♋︎ articles, obligatory N I C E

    • @sainathsingineedi2922
      @sainathsingineedi2922 3 роки тому +1

      Is there a place that I cannot find you?😂

    • @SuboptimalEng
      @SuboptimalEng 3 роки тому

      @@sainathsingineedi2922 It is the UA-cam algorithm, recommending us the same channels

  • @dancehalllyrics1303
    @dancehalllyrics1303 3 роки тому +9

    I was so close to go back and rename my project "The Other Side", so VS Code would print out "Hello from the other side".

  • @haydees1158
    @haydees1158 2 роки тому

    thanks!

  • @mplovecraft
    @mplovecraft 3 роки тому +4

    My Bookmarks tab is basically turning into a Web Dev Simplified playlist...

  • @haralc
    @haralc Рік тому

    Is it possible to have normal extension project and also declare snippets?

  • @MalluStatusorld
    @MalluStatusorld 3 роки тому

    Enthamee.... Enth chekkan daa nee... Nee verum Poli...

  • @kavindesivalli
    @kavindesivalli 3 роки тому

    Woah what a coincidence... I was just looking at Ben Awad's how to create an extension video

  • @KrishnaTiwari-fz4ev
    @KrishnaTiwari-fz4ev Рік тому

    Hello can we create vs code extensions with c# language?

  • @prajjwaldubey721
    @prajjwaldubey721 2 роки тому +1

    i am getting an error:
    "Activating extention: undefined publisher_wds
    how to resolve it????

  • @keithh7994
    @keithh7994 2 роки тому

    How did he find out you need a label && descriptions for the showQuickPick function? I couldn’t find that anywhere in the documentation ?

  • @jillpatel2998
    @jillpatel2998 3 роки тому +2

    Hello,Can anyone please tell me which tools you used to create the pdf of webdev roadmap 2021 which was both in light and dark mode

  • @rangabharath4253
    @rangabharath4253 3 роки тому

    Awesome 👍😎

  • @pawejakubowski829
    @pawejakubowski829 9 місяців тому +1

    Anynone has the same problem that after running F5 it doesn't run extension? Nothing shows in console and also no hello world command was available?

  • @oomg_litx1957
    @oomg_litx1957 3 роки тому

    Nice video

  • @penocrat
    @penocrat 3 місяці тому

    How did you create the rss.xml file, please?

  • @quochoangang6014
    @quochoangang6014 2 роки тому

    Help me. When I use Fast xml parser in typescripts I have error "Command result ed in an error (command not found)". How to fix???

  • @mastergamer4335
    @mastergamer4335 2 роки тому

    can i use the same personal access token for all my VSCode extensions? =D

  • @hosstaba
    @hosstaba Рік тому

    When I try to use "require", I get an error, had to use" import" instead. Then when I use "axios", there's no "get" method. There's a "axios.default.get" method, but calling that causes this error: "Activating extension 'undefined_publisher.helloworld' failed: Cannot read properties of undefined (reading 'get')."
    I'm completley stuck, can you please help? I ssem to have similar issues when trying to use any npm package within an extension. I tried to use the package 'clipboardy", & again there was only a "default" method, & all other methods were within default, & calling any one of them would result in this error: "require() of ES Module c:\helloworld
    ode_modules\clipboardy\index.js from c:\helloworld\out\extension.js not supported. Instead change the require of index.js in c:\helloworld\out\extension.js to a dynamic import() which is available in all CommonJS modules." Please help! Your help would be greatly appreciated

  • @ravikiran925
    @ravikiran925 Рік тому

    my extension is working finally local but after publishing . It's throwing command not found issue.
    any idea bro?

  • @kodethat9761
    @kodethat9761 Рік тому

    Looking for parseable documents...
    Found no documents
    It gives me this in the debug console even though i am running the default created files, any help is welcome

  • @btcls
    @btcls 2 роки тому

    Fk this is the best video I ever find you save my life

  • @VidTDM_XD
    @VidTDM_XD 3 роки тому

    I have two questions 1. How do I set a git rep for it? 2. How do I change the icon?

  • @rahulkhandelwal7034
    @rahulkhandelwal7034 3 роки тому +2

    Can anyone help me I am getting an ERROR :
    property `name` is mandatory and must be of type `string `
    Pls help me , how should be I resolve this error .

  • @ayushnautiyal9469
    @ayushnautiyal9469 3 місяці тому

    how can i use the graphics here. i mean like react graphics

  • @prajjwaldubey721
    @prajjwaldubey721 2 роки тому

    how to resolve :"xmlParser.parse() is not a function" error????

  • @shahadathimel8629
    @shahadathimel8629 3 роки тому

    how to update the extension after publishing ???

  • @huizhong3713
    @huizhong3713 Рік тому

    nice course. but I came cross a problem when I start my project with typescript, 'axios' will be undefined

  • @sebin7856
    @sebin7856 Рік тому

    is it possible to build it with python

  • @muhmmadirshad7376
    @muhmmadirshad7376 3 роки тому

    how to make this ubuntu linux
    extenstion

  • @armaganboi
    @armaganboi 3 роки тому

    yay

  • @william3588
    @william3588 Рік тому

    why not use TS?

  • @codedecode1498
    @codedecode1498 3 роки тому

    Madlad coded a vs code extension in vs code

  • @haralc
    @haralc Рік тому

    How to auto-activate the extension?

  • @tazimrahbar7882
    @tazimrahbar7882 2 роки тому

    Hey can you please make a video about how to use "registerWebviewViewProvider" using JavaScript?

  • @tgp_assassin
    @tgp_assassin 4 місяці тому

    npm isnt on cmd prompt
    what you on about

  • @amitdutta3875
    @amitdutta3875 3 роки тому +2

    can you make a video about how to create google chrome extension using node js?

    • @WebDevSimplified
      @WebDevSimplified  3 роки тому +1

      I already have a video on that topic.

    • @amitdutta3875
      @amitdutta3875 3 роки тому

      @@WebDevSimplified yes sir i watched that but I want to use node js module like puppeteer to scrape data that kind of thing.

    • @amitdutta3875
      @amitdutta3875 3 роки тому

      and is it possible to deploy node js packages without running on server??

  • @islamis_powerful
    @islamis_powerful Рік тому +2

    At starting of this extension I faced a issue related to yo code i resolved it by these commands and also installed a package :
    command1: Get-ExecutionPolicy
    command2: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
    command3: PowerShell -ExecutionPolicy Bypass -Command "yo --generators"
    Please install this package : npm i -g yeoman-generator
    Thanks

    • @bridgersilk
      @bridgersilk Рік тому +1

      thank you so much, i had the same problem and this fixed it. :)

    • @islamis_powerful
      @islamis_powerful Рік тому +1

      @@bridgersilk good man HAPPY CODING/

  • @tigidou3344
    @tigidou3344 Рік тому +2

    Don't work. The extention is not listed in Developpement host.

    • @prakhargupta5410
      @prakhargupta5410 Рік тому

      going through the same issue
      did you find out what was going wrong

  • @BostYT
    @BostYT 2 роки тому

    I don't like how you're always like "And it should work now. But of course, you need to install...."

  • @martyrd0m
    @martyrd0m 2 роки тому

    Make a petty print extension in vs code for
    HTML CSS JS JSON

  • @zencraftitalia9368
    @zencraftitalia9368 Рік тому

    i've not VS Code Extension Development (Preview) Option

  • @kiko_game495
    @kiko_game495 Рік тому

    Respected Lord!
    I have a great video idea for you and I personally wanna make it, a VSCode ChatGPT extension that reads all the code and finds bug and replaces the code with debugged code in a click!
    I think it will be a fantastic video..
    Guys please like so that he sees it!!!

  • @dreamslayer2424
    @dreamslayer2424 3 роки тому

    The first part of the video shows him typing the code npm install - g yo generator-code; however, what he does not tell you are what configurations and installs he has made to VS Code that allows him to run the extension to use the npm command.

    • @janwilmans
      @janwilmans 2 роки тому +1

      exactly, I still have no idea how to start

    • @olamilekanajibola7686
      @olamilekanajibola7686 Рік тому +1

      @@janwilmans install node

    • @waadlingpenguin4863
      @waadlingpenguin4863 Рік тому

      because it's assumed that people who are watching this already know how to use node

  • @avijitchanda7944
    @avijitchanda7944 3 роки тому

    Please make a music player in react js please

  • @kumarutsav1123
    @kumarutsav1123 Рік тому

    4:00

  • @yash1152
    @yash1152 Місяць тому

    0:21 no stack to full stack
    to overflown stack oh lol

  • @abhisheksrivas4589
    @abhisheksrivas4589 Рік тому

    I tried everything but can't find the hello world command.

  • @rishabhverma7730
    @rishabhverma7730 3 роки тому

    Who the hell is that one dislike guy 😕😕😕😕😕😕

  • @mohamedshuaau632
    @mohamedshuaau632 3 роки тому +1

    69 items. Yeah that was not planned

  • @starboy_AJStar
    @starboy_AJStar 2 роки тому

    sir make one more extension for indian, all comments of programming library any language will change english language to hindi language

  • @n0o0b090lv
    @n0o0b090lv 5 місяців тому

    4:27 i paused video then tested and in the console was nothing THEN i went on 2 day rambaling instaling reinstaling typescript instaling typescript other nonsence and today i got tierd and just started tutorial agene got angry agene at this part but then i heard magical words "dont worry its my extension" .....
    to say the least i was dead inside

    • @n0o0b090lv
      @n0o0b090lv 5 місяців тому

      it works just fine
      now

  • @bco-fm5qu
    @bco-fm5qu 3 роки тому

    For you it said added 2 new packages! for me. well... 856

  • @kartikmahajan620
    @kartikmahajan620 3 роки тому +1

    69 articles noice

  • @akgang602
    @akgang602 3 роки тому +1

    Second

  • @samarmohan9891
    @samarmohan9891 3 роки тому

    First

  • @NinjaAhmed-cp3pe
    @NinjaAhmed-cp3pe 3 роки тому

    10th

  • @thehood0279
    @thehood0279 3 роки тому

    fifth

  • @grzegorzsokalski7328
    @grzegorzsokalski7328 3 роки тому

    VSC < JetBrains Tools

  • @zedleclair6638
    @zedleclair6638 3 роки тому

    the ternimal

  • @andrewchu6370
    @andrewchu6370 3 роки тому

    I feel uncomfortable with that thumbnail. Staring into my soul... Little do I know, I’m staring at his screen. He should feel more scared

  • @chubbyshady
    @chubbyshady 3 роки тому

    Someone's been watching Ben 👁💋👁

  • @deansprivatearchive
    @deansprivatearchive 3 роки тому +1

    "ternimal"

  • @Stoney_Eagle
    @Stoney_Eagle 3 роки тому

    You make videos about apis but you don't have a api endpoint.... 🤦‍♂️

  • @prathamrajgor
    @prathamrajgor Рік тому

    How to add a sidebar to an extension. You didn't teach things which a person would actually use. You taught what 100s of tutorials have allready explained before you. You should try to make videos on topics which haven't been covered yet not those which allready have been explained before by other people.

  • @agentstona
    @agentstona 2 роки тому

    Too many stupid steps to build a simple extension ......... surely there is a better faster way somewhere

  • @amitkesari2000
    @amitkesari2000 2 роки тому

    Upon adding the axios part at 13:35 , and trying to run its giving error : ApplicationInsights:CorrelationIdManager and a dialog stating command not found. If I remove axios line its working fine. Any ideas what is wrong?
    Details:stackoverflow.com/questions/71349358/command-not-found-error-in-developemnt-of-vs-code-extension-due-to-require-ax