Save 1h a Week With These Android Studio Shortcuts

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ส.ค. 2024
  • In this video I'll show you my favorite shortcuts for JetBrains IDEs.
    ⭐ Get certificates for your future job
    ⭐ Save countless hours of time
    ⭐ 100% money back guarantee for 30 days
    ⭐ Become a professional Android developer now:
    pl-coding.com/premium-courses...
    💻 Let me personally review your code and provide individual feedback, so it won't backfire and cost you a fortune in future:
    elopage.com/s/philipplackner/...
    Subscribe to my newsletter for regular Android, Kotlin & Architecture advice!
    pl-coding.com/newsletter
    Join this channel to get access to perks:
    / @philipplackner
    Regular live codings on Twitch:
    / philipplackner
    Join my Discord server:
    / discord
    Regular programming advice on my Instagram page: / _philipplackner_
    Checkout my GitHub: github.com/philipplackner
    You like my free content? Here you can buy me a coffee:
    www.buymeacoffee.com/philippl...

ความคิดเห็น • 61

  • @TVSanus
    @TVSanus 2 ปีที่แล้ว +44

    My favorite shortcut is "Ctrl + D", duplicates the current line or selection.

  • @yuf669
    @yuf669 2 ปีที่แล้ว +24

    Oh boy, this video is short cut. In part 2, please, talk about:
    CTRL+P - show parameters of method when cursor inside parameters;
    CTRL+ALT+P - extract parameter from method;
    CTRL+ALT+V - select any statement and extract it to variable;
    CTRL+SHIFT+J - join lines;
    ALT+J - multiline selection;
    CTRL+ALT+T - surround with menu (useful for adding try/catch blocks);
    CTRL+ALT+SHIFT+T - refactor code menu;
    ALT+INSERT - generate code menu (override/implement methods, generate toString()/hash() methods);
    CTRL+ALT+L - reformat code according language code convention (i press this shortcut every time code is changed);
    CTRL+ALT+O - delete unused imports;
    SHIFT+F6 - rename anything renamable;
    CTRL+/ - comment/uncomment line;
    CTRL+SHIFT+/ - comment/uncomment selection;
    CTRL+W- select statement around cursor or selection and CTRL+SHIFT+W - unselect selection;
    and many more you can find.

  • @VishnuHaridas
    @VishnuHaridas 2 ปีที่แล้ว +13

    Adding my regular shortcuts:
    1. Ctrl+E - shows the recent files. A really useful shortcut. Try Ctrl+Tab also.
    2. Ctrl+Shift+A - to run menu actions like "Analyze stack trace" or "Soft wrap".
    3. Ctrl+W - for selecting words (keep on pressing W for expanding the selection)
    4. Click and hold mouse, then hold Alt, then drag - for column selection mode. Used when copying intended code/comment.
    5. Hold Ctrl+Shift+Alt, then click - for multiple cursors.
    6. Ctrl+Alt+Shift+Insert - for a new scratch file (temporary files, not added to Git)
    Used only while presenting or doing full-screen editing: Ctrl+` (backquote) then choose "View Mode".

    • @Ilamarea
      @Ilamarea 2 ปีที่แล้ว

      "Ctrl+Alt+*Shit*+Insert" Huehuehue

    • @VishnuHaridas
      @VishnuHaridas 2 ปีที่แล้ว

      @@Ilamarea Oh shift! Thanks for pointing that out, updated, shift!

    • @mouhamadbourouba5382
      @mouhamadbourouba5382 2 ปีที่แล้ว

      @@Ilamarea hhhhhhhhhhahahahah

  • @ravi.sharma96
    @ravi.sharma96 2 ปีที่แล้ว +7

    Ctrl + N -> find classes
    Ctrl + Shift + N -> find any type of file in module
    Ctrl + Shift + F -> find specific code from all files

  • @ahmedel-hady3249
    @ahmedel-hady3249 2 ปีที่แล้ว +9

    My personal favorite is Ctrl+W lets you select based on context :)

  • @chornge1
    @chornge1 2 ปีที่แล้ว +5

    Parameter Info: Cmd + P (mac), Ctrl + P (non-mac) - it shows the allowed arguments that are acceptable inside a function's parenthesis

  • @novaart2297
    @novaart2297 ปีที่แล้ว

    thank you so much philipp finally found vid about this

  • @iamkrishn
    @iamkrishn 2 ปีที่แล้ว +2

    Some other shortcuts:
    Shift + F6 -> Renames the occurrences of any word. (Useful when you made a spelling mistake or want to add some more words for better understanding).
    Also not a shortcut, but a faster way to make Getters & Setters is to go to: Code -> Generate -> Getters/Setters/Getters & Setters. And there are plenty more options there.
    Philip can make another video on this for Intermediate/Advanced Android Devs.

    • @ShymKTLMezun
      @ShymKTLMezun 2 ปีที่แล้ว

      Sometimes this shortcut doesn't work I don't know why)

  • @chandrusundaramurthy3310
    @chandrusundaramurthy3310 2 ปีที่แล้ว

    Helpful! Thanks

  • @elijahonduso
    @elijahonduso 2 ปีที่แล้ว +1

    Like the video, watch later. That's the spirit with your videos. Kudos

  • @n-o-i-d
    @n-o-i-d 2 ปีที่แล้ว

    A mouse with lateral back and forward buttons is something that I came to appreciate a lot, replacing CTRL+Alt+Left and CTRL+Alt+Right

  • @omkarpawar1741
    @omkarpawar1741 2 ปีที่แล้ว +1

    alt+j, shift+f6, ctrl+alt+t, ctrl+alt+l, Alt+Insert

  • @bvg129
    @bvg129 2 ปีที่แล้ว +1

    These are also works with all IDEA-based IDEs. They can be interacted with entirely without mouse.
    And the best thing - you can change any of them to anything.

  • @MarkLapasa
    @MarkLapasa 2 ปีที่แล้ว +2

    In addition to keyboard shortcuts, getting a Logitech MX Master 3 mouse will save well beyond an hour a week. The application specific programable macros make life easier for the actions done so often, like pressing a single physical button from anywhere in the IDE to deploy debuggable build. No need to move the mouse to hit a UI button or press 3 keys on a keyboard.

    • @mubaraknative
      @mubaraknative 8 หลายเดือนก่อน

      But it is Very costly

  • @bvg129
    @bvg129 2 ปีที่แล้ว

    Good one is Ctrl+[ or Ctrl+]
    It move cursor to start or end of blocks of code, and works with shift

  • @dreamer6228751
    @dreamer6228751 2 ปีที่แล้ว

    Thanks for best video 😉)

  • @codinginflow
    @codinginflow 2 ปีที่แล้ว +1

    Ctrl + Shift + Enter

  • @raghavaggarwal8644
    @raghavaggarwal8644 2 ปีที่แล้ว +2

    Just saw Rahul Pandey's video on same topic, let's see what Philipp has to offer 😅

  • @RFbcc
    @RFbcc 2 ปีที่แล้ว

    Thanks for great content!!
    Does anybody know how to keep folded the functions that i folded even after the IDE restart ?

  • @sooshil
    @sooshil 2 ปีที่แล้ว +2

    You missed really important and useful shortcut: Alt + J

    • @djknight00
      @djknight00 2 ปีที่แล้ว

      What does it do?

    • @sooshil
      @sooshil 2 ปีที่แล้ว +1

      @@djknight00
      Select one word or part of word. And keep hitting Alt + J, so that you can keep selecting multiple occurrence of that word or part of word in your file. Then you can edit it live in all occurrences.

  • @wenlongteo6272
    @wenlongteo6272 2 ปีที่แล้ว

    want to ask if using jetpack compose, fragment will no longer be needed?

    • @timofeytenushko9946
      @timofeytenushko9946 2 ปีที่แล้ว

      Not necessarily, you can use jetpack compose in fragments.

  • @MaulikDodiaHollywoodMovieLover
    @MaulikDodiaHollywoodMovieLover 2 ปีที่แล้ว

    Knew all the shortcuts you mentioned.

  • @LasseMagnussen
    @LasseMagnussen 2 ปีที่แล้ว +1

    Ctrl+g is my favourite. Multiple cursors

    • @mikec4220
      @mikec4220 2 ปีที่แล้ว

      Absolutely love Ctrl + G !!! Saves so much time!

  • @Sunny-zh6go
    @Sunny-zh6go 2 ปีที่แล้ว

    Knew it all 😎

  • @rafaeldeazeredo3770
    @rafaeldeazeredo3770 2 ปีที่แล้ว

    Please make a video teaching how to use the Structural Replace of the Android Studio

  • @sanelemhlanga2720
    @sanelemhlanga2720 2 ปีที่แล้ว

    Hello may you please show us how to make a food delivery app like Uber eats
    I'm struggling with the ordering system part

  • @mohammadjavadalijani
    @mohammadjavadalijani 2 ปีที่แล้ว

    Ma favorite shortcut is "Ctrl + Alt + T" gives you many options like write "if" , "for" , "try" and ...

  • @mimobile1252
    @mimobile1252 ปีที่แล้ว

    Please make the video on mvvm with retrofit Api..

  • @vahidgarousii
    @vahidgarousii 2 ปีที่แล้ว

    Hello, if possible, teach us how to make hiltmm and vmstat shortcuts that you used in the tutorials.

    • @PhilippLackner
      @PhilippLackner  2 ปีที่แล้ว +1

      Check my live template Video and you'll know :)

  • @figurich
    @figurich ปีที่แล้ว

    Vim: hold my beer

  • @irsathkareem7513
    @irsathkareem7513 2 ปีที่แล้ว

    Please Make video on Android Studio Profilers

  • @puszkinowski
    @puszkinowski 2 ปีที่แล้ว

    Ctrl + Q - documentation check

  • @nadilyt
    @nadilyt 2 ปีที่แล้ว

    Save years of study with Philipp Lackner ^_^

  • @leonljubicic545
    @leonljubicic545 2 ปีที่แล้ว +3

    Helpful, but this is like 5% of shortcuts that can be used in everyday work. You missed a lot of great ones. I think that videos on topic like this need to be much more comprehensive.

    • @PhilippLackner
      @PhilippLackner  2 ปีที่แล้ว +2

      Then feel free to tell us your favorites here :)

    • @thespacejedi
      @thespacejedi 2 ปีที่แล้ว +2

      @@PhilippLackner auto generate test files, generate method overrides, generate try catch blocks.. and many more. I suggest searching TH-cam for videos that provide a better overview on this topic. Other wise I genuinely love your other content!

    • @leonljubicic545
      @leonljubicic545 2 ปีที่แล้ว +2

      ​@@PhilippLackner Multicursor is important.
      For example, hold ALT + CLICK + move mouse up/down (puts cursor on every single).
      The next one puts additional cursor on any position we want ( SHIFT + ALT + CLICK).
      The last thing about multicursor I find very useful is that you can select any part of your code (for example select word 'print'), then press ALT + J and it will put additional cursor on the next word 'print'. If you want to put cursor on all 'print' in code, then press SHIFT + CTRL + ALT + J.
      Hope this saves somebody's coding career :D

  • @shahriarzaman4715
    @shahriarzaman4715 2 ปีที่แล้ว

    I wish I knew cltr+shift+f ! I hadn’t to grep into projectDir...😥

  • @ashispaul0013
    @ashispaul0013 2 ปีที่แล้ว

    Or maybe use vim plugin

  • @shrinivasmanjithaya2112
    @shrinivasmanjithaya2112 2 ปีที่แล้ว

    Ctrl + Alt + L which reformats whole code in a file and clears unused imports..

  • @mgroups
    @mgroups 2 ปีที่แล้ว

    I am already using VIM..

  • @Berk45632
    @Berk45632 2 ปีที่แล้ว

    For better marketing purposes, make the title, "52 hours a year." 😉😉
    Bigger the better. 🤭
    Jokes apart, great video!! Turns out I use most of them. 🥳

  • @thespacejedi
    @thespacejedi 2 ปีที่แล้ว

    Just use vim