How to Use VS Code with Godot!

Поділитися
Вставка
  • Опубліковано 3 січ 2025

КОМЕНТАРІ • 78

  • @DykeTailor
    @DykeTailor Рік тому +26

    For any other Linux users here, while VSCode can be installed as a Flatpak, I don't think this works if Godot is installed in that format
    I mean, you can probably make it work somehow by giving it the right permissions, but just simply giving it file access to the VSCode executable didn't work for me so I just downloaded the normal binary from the website, which worked perfectly fine and the same as in the video

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

      There is a flatpak called flatseal that manages all installed flatpaks' permissions with GUI. You can toggle access to all files or just selected few from there.

  • @brandong9854
    @brandong9854 Рік тому +6

    This was a fantastic help, I spent a few hours trying to figure out why I couldn't open VS code from in the engine just to see my executable path was going to a shortcut, not the actual .exe, and this is the first tutorial that showed how to actually add it and helped me locate it, thank you so much

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

    Thanks! And if any of you get an error "Could not create child process" after running this tutorial you have to set VS code to NOT run as an administrator

  • @crowlovercicada
    @crowlovercicada 11 місяців тому +1

    this is super helpful! i'll be sure to refer this video to my friends

  • @KenjiVdusc
    @KenjiVdusc 7 місяців тому +1

    What i want to note there, we spend over a minute of VS Code preperations, and 1.5s on where to go in the settings.

  • @SamiO-si4mc
    @SamiO-si4mc Рік тому +2

    Thanks!!! This was super helpful! Much better than Godot 4.1 external code window! :)

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

    This is very helpful! noice tutorial

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

    excellent video mate! thanks for sharing

  • @theab101
    @theab101 Місяць тому +1

    A bit late. The Godot Tools plugin for vscode now supports dragging a node and holding shift to create the onready variable

    • @queblegamedevelopment4143
      @queblegamedevelopment4143  Місяць тому +1

      Omg that's actually game changing I didn't know that! I'll need to update the video!

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

      Just tried this, and can't seem to get it to work.
      How did you get this to work? XD

  • @andrelfr92
    @andrelfr92 15 днів тому

    Is there a way to make linking signals easier? When i try to link signals it keeps pulling an earlier version of the script

  • @ProjectCubes
    @ProjectCubes 27 днів тому +1

    Though a problem cause of "Please, confirm..." inside godot and no Ctrl + I (fix indentation) in vscode (i dunno why no such thing in those godot tools if even godot IDE have one).
    Mixing both is good idea, cause it's faster to do small changes to already existing parts in built-in one (that don't require auto-completion).
    Opening external once and uncheck "external" is good enough. Inside VSCode you still can open other scripts through search.
    P.S.
    And, yes, there are no extensions for just VS, only the theme.

    • @queblegamedevelopment4143
      @queblegamedevelopment4143  27 днів тому

      I guess I don't understand your question exactly.. do you mean is there syntax highlighting for GDScript? If that's what you meant, yes there is.
      Also for the constant reloads thing, that shouldn't be an issue if you've set it up correctly.
      You can also get a plugin to handle the auto indentation if you'd like, and even one for saving the file when you switch back to Godot (which is what I use)

    • @ProjectCubes
      @ProjectCubes 26 днів тому

      ​@@queblegamedevelopment4143 Nvm, visual studio (not code, oh god, MS! Rename it already) doesn't have any godot extensions, so no point comparing to VScode, anyways intellicode and formatting whole document(+fixing indents) won't work there.
      Also about indents i mean there is Ctrl + I in godot text editor, which can fix without tabbing manually, though not perfect in some cases. Main problem is VSCode is more sensitive to copy paste, than Godot one.
      The reloads are asked anyways when edited in VSCode is there setting that makes it auto?
      Extra (VS):
      Though syntax will i guess, thanks to LSP thing

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

    Perfect! exactly what I needed

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

    Great, thanks for the help.

  • @brucelee7782
    @brucelee7782 11 місяців тому

    OMG thanks bruh worked for my godot 3.5. Didnt understand a thing in the official docs 😂

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

    Do you know how to change the default syntax highlighting to the one the godot editor uses?

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

    Thank you for this!

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

    Your a life saver dude thanks

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

    Thanks, no other tutorial showed setting up the network settings. So got it working properly now.
    Think I'll edit in Godot, and then toggle the VSCode only only to refactor. (Although they're currently developing the ability to refactor in the Godot editor, so won't have to use VSCode soon for variable/function renaming, unless ofc you use C#)
    Also, what do you use to edit your videos?

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

      Yeah no problem!
      I use premier pro, but honestly I don't think it's worth the subscription.
      Personally I dislike all the adobe products I've used, and would much rather use free alternatives, as they also seem to run better

  • @SeanMcKenzie
    @SeanMcKenzie Рік тому +3

    Does using VSCode mean you can do actual code refactoring (rather than just find/replace like in the Godot Editor)?

    • @queblegamedevelopment4143
      @queblegamedevelopment4143  Рік тому +7

      Yes!
      VS Code is essentially just a very powerful code editor.
      So since the Godot tools plugin provides VS Code with the GD script syntax logic, it's logical to use VS Code over the Godot editor in my opinion.
      If you're getting started with VS Code, you should check out some setup guides :)
      There're a ton of cool shortcuts, plugins, and workflows which you can implement in VS, and it'll really speed up development time knowing how to leverage the tool!

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

    2:39 If visual studio code came pre installed on your computer when you first got it then what should you do? im having this problem and I cant find the file I installed it with because it came pre installed

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

      Hmm, you might be able to find the install path through the executable or the app settings?

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

    thanks for the help!

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

    Thanks dude!

  • @Oddle_
    @Oddle_ 7 місяців тому

    2:11 "Exec Path" and "Exec Flags" do not appear for me, and I don't know why, can you help me with this issue?

    • @Oddle_
      @Oddle_ 7 місяців тому +1

      WHY DO THEY JUST SUDDENLEY APPEAR NOW, I CHANGED LITERALLY NOTHING

    • @queblegamedevelopment4143
      @queblegamedevelopment4143  7 місяців тому +1

      @Oddle_ 😅

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

    Thank you for making this video. Now I can code in my crappy laptop without it going to the temperature of the sun cause it is trash :D

  • @hakej37
    @hakej37 10 місяців тому

    Do you recommend any specific themes for VSCode for Godot? :)

  • @oroshi858
    @oroshi858 9 місяців тому

    hey, i'v done this but the connexion between godot and vs code is very laggy, im on linux, do you have any clue about how i could solve this?

  • @skruyo
    @skruyo 20 днів тому

    just asking what vsc theme do you use?

  • @CustomClass5
    @CustomClass5 10 місяців тому +1

    very simple thank you

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

    Does the VScode allow debugging straight from it ? i can't debug my code made in VScode, but instead have to go to godot to debug it, is this normal?

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

      No, this isn't normal.
      If you've installed the plugin, it should allow for debugging inside of VSCode.
      Are your ports set correctly?

  • @KENISEG
    @KENISEG 10 місяців тому

    I just need a intellisense in gdscript.
    Internal editor did not have this or working bad.
    What about VSCode?

  • @jodyeclothing964
    @jodyeclothing964 11 місяців тому

    May I ask what's your vsc code file manager theme ? Looks neeet

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

    Hello! In C# code Signals cannot be added straightly in VScode. How can I solve it?

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

      Hey!
      Oh really? That's interesting, I haven't encountered this since I usually use Gdscript, but I'll try to look into it when I get time :)

  • @MerrStudio
    @MerrStudio 10 місяців тому

    One thing that vscode is inferior at though is documentation. Weird formatting is one thing, but it just straight up crashes sometimes for some reason. Other than that it's great.

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

    Thank you! Also, you sound a bit like Carl Sagan, lol

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

    why does your vscode look so elegant?😅 is it just some vscode theme or what?

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

    May I ask what editor theme are you using for Godot? Those rounded shapes look really neat.

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

      If I remember correctly, it should be the default theme with higher contrast and a high corner radius:)

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

    I was having issues using the node signals and getting them to connect in VS code. Would you by chance know a script work around or anything to get it to work in VS

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

      Yeah this has just been something I've gotten used to.
      I think as of godot 4 it now doesn't ruin your script (sometimes it wouldn't even add the code in), but if that's still happening, I used to just disable the external editor when connecting signals in the editor.
      Definitely would be cool to have some upgrades in this area, maybe I'll look into it this week.
      Side note, I wonder if I could make something to embed VS Code into a Godot doc!?
      That would be really cool

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

      @@queblegamedevelopment4143 Ty! that was a great tip! Such an oversight I have been trying to fix for hours.
      I agree that would be sick!
      Thanks again!

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

    Does Copilot work with the godot extension?

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

    Thanks!!

  • @JohnSmith-one
    @JohnSmith-one 11 місяців тому

    But you still debug from Godot, right?
    I thought maybe I would open Godot and VSCode and use them simultaneously. Do you think it is an ok idea or completely useless?

    • @queblegamedevelopment4143
      @queblegamedevelopment4143  11 місяців тому

      Yeah I still debug from Godot.
      I think it's a good idea since VS Code is just way more powerful, but up to you :)

  • @nubsdre
    @nubsdre 11 місяців тому

    Just saved my life

  • @6ocram
    @6ocram 10 місяців тому

    Thank You very much

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

    Thanks!

  • @dramkilgallen5237
    @dramkilgallen5237 6 місяців тому

    this did not work

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

    like. thank you!

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

    raise your hand who else thought that this video is about a "connect through code" in godot...

  • @MaxIzrin
    @MaxIzrin 7 місяців тому

    Going to try this in a couple of hours.
    I gave it my all to learn GDscript, and then I spent an hour debugging a spelling error, which made me remember why I don't touch Python with a 10' pole.
    It's C# time.

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

    пипец

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

    Thanks!

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

    Thank you!

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

    thank you!