How To Create And Deploy A VSCode Extension

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

Комментарии • 130

  • @BrianKapellusch
    @BrianKapellusch 3 года назад +16

    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 Год назад

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

  • @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.

    • @santoshpathak8201
      @santoshpathak8201 22 дня назад

      I want your help to build my own Extension in VS code , Currently confused how to get started and how to integrate it with ML. Can you please help me out ??

  • @CodeWithTomi
    @CodeWithTomi 3 года назад +54

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

    • @AMP_PLUS
      @AMP_PLUS 3 года назад +1

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

  • @hsjeevan
    @hsjeevan 10 месяцев назад +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!

  • @JenuelDevTutors
    @JenuelDevTutors 3 года назад +6

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

  • @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.

  • @aqua7897
    @aqua7897 3 года назад +4

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

  • @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

  • @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 🤩👍🏽

  • @sinwookdo5083
    @sinwookdo5083 2 года назад +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 2 года назад +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

  • @thisissyedbasim
    @thisissyedbasim 3 года назад +2

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

  • @RudraprasadMohapatraa
    @RudraprasadMohapatraa 9 месяцев назад +1

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

  • @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 RUclips algorithm, recommending us the same channels

  • @pawejakubowski829
    @pawejakubowski829 Год назад +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?

  • @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..."

  • @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!

  • @lofistudio9652
    @lofistudio9652 3 года назад +1

    I had this curiosity this morning

  • @pranavjain9799
    @pranavjain9799 2 года назад +1

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

  • @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/

  • @MalluMonkAthul
    @MalluMonkAthul 3 года назад

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

  • @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??

  • @vrindatyagi6744
    @vrindatyagi6744 3 года назад +1

    THANKYOU SO MUCH I SUCCESSFULLY MADE THIS TODAY!

  • @dawid_dahl
    @dawid_dahl Год назад +2

    Great and straight to the point. Thanks! 🙏🏻

  • @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 😊

  • @RobDuarte
    @RobDuarte 2 года назад +1

    This is such a great tutorial - thanks!

  • @dancehalllyrics1303
    @dancehalllyrics1303 3 года назад +10

    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".

  • @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 .

  • @luckyvanilla388
    @luckyvanilla388 3 года назад +2

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

  • @kavindesivalli
    @kavindesivalli 3 года назад

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

  • @OndrejPopp
    @OndrejPopp Год назад

    Tx for the intro!

  • @BostYT
    @BostYT 2 года назад

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

  • @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 2 года назад +1

      @@janwilmans install node

    • @waadlingpenguin4863
      @waadlingpenguin4863 Год назад

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

  • @btcls
    @btcls 2 года назад

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

  • @mplovecraft
    @mplovecraft 3 года назад +4

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

  • @prajjwaldubey721
    @prajjwaldubey721 2 года назад +1

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

  • @Caiomsilva
    @Caiomsilva Месяц назад

    about the step of adding the command string and title in package.json, I'll always have to add it manually? what if I have 1000 commands to be added?

  • @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

    • @WebDevSimplified
      @WebDevSimplified  3 года назад +1

      I used Figma to design it completely.

    • @jillpatel2998
      @jillpatel2998 3 года назад +1

      @@WebDevSimplified ok, thanks for reply

  • @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?

  • @insaneviruss
    @insaneviruss 2 года назад +1

    Thanks mate! This was helpful

  • @arvindkumar-ug1zf
    @arvindkumar-ug1zf 2 года назад

    Thanks for amazing video

  • @proflead
    @proflead 6 месяцев назад

    Thanks for sharing! I should try!

  • @hosstaba
    @hosstaba 2 года назад

    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 2 года назад

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

  • @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?

  • @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???

  • @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 ??

  • @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 ?

  • @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

  • @rangabharath4253
    @rangabharath4253 3 года назад

    Awesome 👍😎

  • @prajjwaldubey721
    @prajjwaldubey721 2 года назад

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

  • @huizhong3713
    @huizhong3713 2 года назад

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

  • @sairfan06
    @sairfan06 Год назад

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

  • @jieqiangwei7569
    @jieqiangwei7569 3 года назад

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

  • @AlThePal78
    @AlThePal78 3 года назад

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

  • @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

  • @EdgarCostanzo
    @EdgarCostanzo 13 дней назад

    Can anyone point me to a beginner's resource that will help me develop an extension that interfaces with the default git extension? Thanks in advance.

  • @haralc
    @haralc Год назад

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

  • @a3fckx
    @a3fckx 7 месяцев назад

    Helpful

  • @haydees1158
    @haydees1158 2 года назад

    thanks!

  • @codedecode1498
    @codedecode1498 3 года назад

    Madlad coded a vs code extension in vs code

  • @shahadathimel8629
    @shahadathimel8629 3 года назад

    how to update the extension after publishing ???

  • @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!!!

  • @oomg_litx1957
    @oomg_litx1957 3 года назад

    Nice video

  • @armaganboi
    @armaganboi 3 года назад

    yay

  • @KrishnaTiwari-fz4ev
    @KrishnaTiwari-fz4ev Год назад

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

  • @tazimrahbar7882
    @tazimrahbar7882 2 года назад

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

  • @ayushnautiyal9469
    @ayushnautiyal9469 7 месяцев назад

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

  • @zencraftitalia9368
    @zencraftitalia9368 2 года назад

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

  • @martyrd0m
    @martyrd0m 2 года назад

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

  • @mastergamer4335
    @mastergamer4335 3 года назад

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

  • @penocrat
    @penocrat 6 месяцев назад

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

  • @muhmmadirshad7376
    @muhmmadirshad7376 3 года назад

    how to make this ubuntu linux
    extenstion

  • @haralc
    @haralc Год назад

    How to auto-activate the extension?

  • @abhisheksrivas4589
    @abhisheksrivas4589 Год назад

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

  • @n0o0b090lv
    @n0o0b090lv 9 месяцев назад

    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 9 месяцев назад

      it works just fine
      now

  • @tgp_official_clan
    @tgp_official_clan 8 месяцев назад

    npm isnt on cmd prompt
    what you on about

  • @yash1152
    @yash1152 5 месяцев назад

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

  • @rishabhverma7730
    @rishabhverma7730 3 года назад

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

  • @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

  • @mohamedshuaau632
    @mohamedshuaau632 3 года назад +1

    69 items. Yeah that was not planned

  • @kumarutsav1123
    @kumarutsav1123 Год назад

    4:00

  • @william3588
    @william3588 Год назад

    why not use TS?

  • @avijitchanda7944
    @avijitchanda7944 3 года назад

    Please make a music player in react js please

  • @grzegorzsokalski7328
    @grzegorzsokalski7328 3 года назад

    VSC < JetBrains Tools

  • @bco-fm5qu
    @bco-fm5qu 3 года назад

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

  • @santoshpathak8201
    @santoshpathak8201 22 дня назад

    Anybody in the community who knows that how to build a extension from scratch . I want a guide for my project.
    Please let me know if there is anyone who can assist me++

  • @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

  • @akgang602
    @akgang602 3 года назад +1

    Second

  • @prathamrajgor
    @prathamrajgor 2 года назад

    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

  • @NinjaAhmed-cp3pe
    @NinjaAhmed-cp3pe 3 года назад

    10th

  • @thehood0279
    @thehood0279 3 года назад

    fifth

  • @samarmohan9891
    @samarmohan9891 3 года назад

    First

  • @deansprivatearchive
    @deansprivatearchive 3 года назад +1

    "ternimal"

  • @sebin7856
    @sebin7856 Год назад

    is it possible to build it with python

  • @Stoney_Eagle
    @Stoney_Eagle 3 года назад

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

  • @kartikmahajan620
    @kartikmahajan620 3 года назад +1

    69 articles noice

  • @chubbyshady
    @chubbyshady 3 года назад

    Someone's been watching Ben 👁💋👁

  • @architchhajed2514
    @architchhajed2514 3 месяца назад

    can your girlfriend fight?