Godot Scripting Shortcuts I Can't Live Without 🥰

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

КОМЕНТАРІ •

  • @seem_okay_studio
    @seem_okay_studio 3 місяці тому +7

    I promise to forget all of these, so that I have to watch this every 2-3 months.

    • @baconandgames
      @baconandgames  3 місяці тому +1

      Haha. You know, half of the time I’m making these videos as much for me as for everyone else. For one, teaching something tends to cement it in one’s brain… but often it also doesn’t and then I can just pull up the video 🤣
      Make me a promise… if you do forget and have to come back, leave another comment with a tip for me on anything you learned since last time that you think would be useful to you or others.

  • @grymmjack
    @grymmjack 3 місяці тому +6

    I was pleased to discover that the godot text editor shared a lot of defaults with vscode/sublime text.

    • @baconandgames
      @baconandgames  3 місяці тому +1

      Yes! There are a few missing that I’d love to see come over from those two but I’m in no position to complain about a free tool so I’ll just continue to wait patiently 🤞

  • @skaruts
    @skaruts 3 місяці тому +4

    I hope this video gets a lot of views because this is quite useful stuff to know. Especially the multi-cursors. I feel like many people don't know about them, or aren't aware of how useful and efficient they are (even many experienced programmers).

    • @baconandgames
      @baconandgames  3 місяці тому +2

      Thanks, me too. The more views I get the more videos I can make. The more people I can help. 🤞

  • @KartikNarayanan
    @KartikNarayanan 3 місяці тому +4

    great video. I didn't realise that the goodie editor had these capabilities .

    • @baconandgames
      @baconandgames  3 місяці тому +1

      Thanks! I'm not sure why these aren't mentioned on the shortcuts documentation (well some of them are, but not all of them). I'm hoping more of the shortcuts from VS Code / Sublime Text will make their way over in time. And before anyone says I can use VS Code as an external editor - I know :P
      Thanks for watching and for the kind comment. Good luck with your projects!

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

    The multiple-cursor thing is mind blowing. Never thought it's even possible, though it's so simple.

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

      That’s a super handy one for sure 🤯

  • @Sylfa
    @Sylfa 3 місяці тому +2

    I don't personally use visual scripts, but your mention of this being for people who prefer using the keyboard jogged my memory. There's an addon called Orchestrator in the asset library.
    Not sure if you want to make a video on it, but it's an option for people who prefer not typing. Could also be a great help if you use Godot on a phone or tablet, must try that actually…

    • @baconandgames
      @baconandgames  3 місяці тому +1

      I’ve never been big on visual scripting so I’m not sure I’m the right person to teach that. Is an interesting idea though. Might be worth tinkering with 🤔 Thanks for the idea!

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

    Wait but those multiple cursor shortcuts are awesome 😳 Thanks for the video!

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

    Note that Ctrl+Alt+D (Opt+Cmd+D) and even the entire option that it calls, ui_text_skip_selection_for_next_occurrence, are new to Godot 4.3, so if you are still using 4.2 as I have been, it is not present. Hopefully that helps anyone else who runs into that not working!

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

    what kind of sorcery is this!? thank you so so much, you clearly make a difference in the world.

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

      Some might say that I just make the world different 🤣❤️

  • @cashewolddew
    @cashewolddew 3 місяці тому +1

    As a fellow shortcut enthusiast, I found this video very useful, and it also taught me a few neat tricks I did not know about! 🥜

  • @queblegamedevelopment4143
    @queblegamedevelopment4143 3 місяці тому +3

    I can't focus with your 2 Godot Plushies taunting me. I only ordered 1... :(
    Great video!

    • @baconandgames
      @baconandgames  3 місяці тому +2

      You spotted those, eh? 😉 One is for me. One is going to go to a viewer… I just haven’t figured out what the event will be.

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

      I bought 3! Both of my teens got one.

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

      @fritzytg niiiiiiice 😍

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

    One thing I really miss in godot is the ability to extract functions/methods/constants. I believe this is doable. I was even thinking about just making a plugin that gets this done. Also the "Shrink/Expand Selection". God i need it really much...

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

    Oh I'm actually in the camp of knowing most of these (full time programmer lol), but thank you for spreading the word. Is it really going to save that much time? Probably not, but reducing that friction and having efficient command of your text editor just FEELS good, like getting a huge clear in tetris.
    ``ctrl + arrow keys > ctrl + shift + arrow keys > backspace or overwriting text > end`` is one of my favorites when I didn't catch something when writing, haha

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

      “like getting a huge clear in Tetris” - true words have never been spoken 🤜🤛

  • @shindig9000
    @shindig9000 3 місяці тому +1

    I stuck with you because I was hoping to find an example of an easier way to move to the end of the line as when I'm typing a function and add the parentheses, it's annoying to have to reach all the way over to hit right in order to get outside of the parentheses and to continue typing.
    I was almost hoping that I could just find a custom keyboard to have some extra buttons beneath the space bar because I feel like it would make more sense to my brain xD

    • @baconandgames
      @baconandgames  3 місяці тому +1

      I did mention that in the video, though it wasn't really a main feature. On PC you can use Home and End to jump to the beginning or end of a line. On a Mac, is CMD + left or right.
      Keyboard shortcuts are great, to a point. When they start to get too complicated they get hard to remember and don't save you time. So I tend to stick to a few that I use all the time and forget the rest. The above items are both OS-level commands (meaning they'll work in any application with text)
      Similarly with Option left or right to move one word at a time which I this is alt + left/right on a PC (could be CTRL - I use both but am more of a Mac guy so it's more in my fingers than my memory 🤪)

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

      @@baconandgames
      Yeah I did catch those it's just they are still such a reach for me on my normal hand positioning on the keyboard 😅
      I really do appreciate some of those extra commands you've showed though. Great video 👏

    • @baconandgames
      @baconandgames  3 місяці тому +3

      Ohhhh, now I getcha. Yeah, end and home aren't in great spots. You can search for End in shortcuts. The ui_text_caret_line_end shortcut is the one you want. You can add a second shortcut for whatever you want to jump to the end of a line. I believe CTRL + E is available. That should take care of what you're looking for. So you'll still be able to do it with End, plus whatever shortcut you want to assign to that.

    • @shindig9000
      @shindig9000 3 місяці тому +1

      @@baconandgames
      Thank you so much for the advice 🙏

  • @vcd200044
    @vcd200044 3 місяці тому +1

    Great video! May I ask if there are shortcuts for selecting GDScript in "Script" tab ? For example, Ctrl +Tab can switch the next tab in editor, but I dont know how to go forward/backward script, or previous actived script.

    • @baconandgames
      @baconandgames  3 місяці тому +2

      There are... sorta. The < > buttons in the upper right of the editor seem to take you through editor history, like browser back and forward buttons... I haven't found a shortcut for those but perhaps I'm looking in the wrong place.
      You can move sequentially back and forward through scripts with CTRL + SHIFT + < / > (CMD + SHIFT < / > on a Mac). Similarly you can cycle through scene tabs with CTRL + TAB and CTRL + SHIFT + TAB (CMD + TAB and CMD + SHIFT + TAB)
      For the full list (although as I said, some of what's in the video isn't listed here) you can check Godot's documentation page here: docs.godotengine.org/en/stable/tutorials/editor/default_key_mapping.html

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

      @@baconandgames Thanks for your information. I got the short cut for switching the previous active script from your link , called "History Previous" . Thanks for the help.

  • @Sylfa
    @Sylfa 3 місяці тому +1

    👍

  • @pro.giciel9084
    @pro.giciel9084 3 місяці тому

    why 2plushies ? i want one

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

      I’m planning a giveaway for the second one 🤫

  • @varyform
    @varyform 3 місяці тому +2

    Man, did you ever use any other editor?
    Shortcuts are kind of standardized across all editors. Not in godot though: CMD+SHIFT+D should duplicate selected line :)
    But your skills at making youtube videos are way better than mine ;)

    • @baconandgames
      @baconandgames  3 місяці тому +3

      I wish they were standardized across other editors. There are so many shortcuts from CS Code that aren’t implemented in Godot. I keep hoping they’ll show up.