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...
My favorite shortcut is "Ctrl + D", duplicates the current line or selection.
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.
Thanks!
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".
"Ctrl+Alt+*Shit*+Insert" Huehuehue
@@Ilamarea Oh shift! Thanks for pointing that out, updated, shift!
@@Ilamarea hhhhhhhhhhahahahah
Ctrl + N -> find classes
Ctrl + Shift + N -> find any type of file in module
Ctrl + Shift + F -> find specific code from all files
shift + shift you can find all files in the project
My personal favorite is Ctrl+W lets you select based on context :)
Parameter Info: Cmd + P (mac), Ctrl + P (non-mac) - it shows the allowed arguments that are acceptable inside a function's parenthesis
thank you so much philipp finally found vid about this
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.
Sometimes this shortcut doesn't work I don't know why)
Helpful! Thanks
Like the video, watch later. That's the spirit with your videos. Kudos
I always do the same.
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
alt+j, shift+f6, ctrl+alt+t, ctrl+alt+l, Alt+Insert
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.
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.
But it is Very costly
Good one is Ctrl+[ or Ctrl+]
It move cursor to start or end of blocks of code, and works with shift
Thanks for best video 😉)
Ctrl + Shift + Enter
Just saw Rahul Pandey's video on same topic, let's see what Philipp has to offer 😅
Thanks for great content!!
Does anybody know how to keep folded the functions that i folded even after the IDE restart ?
You missed really important and useful shortcut: Alt + J
What does it do?
@@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.
want to ask if using jetpack compose, fragment will no longer be needed?
Not necessarily, you can use jetpack compose in fragments.
Knew all the shortcuts you mentioned.
Ctrl+g is my favourite. Multiple cursors
Absolutely love Ctrl + G !!! Saves so much time!
Knew it all 😎
Please make a video teaching how to use the Structural Replace of the Android Studio
Hello may you please show us how to make a food delivery app like Uber eats
I'm struggling with the ordering system part
Ma favorite shortcut is "Ctrl + Alt + T" gives you many options like write "if" , "for" , "try" and ...
Please make the video on mvvm with retrofit Api..
Hello, if possible, teach us how to make hiltmm and vmstat shortcuts that you used in the tutorials.
Check my live template Video and you'll know :)
Vim: hold my beer
Please Make video on Android Studio Profilers
Ctrl + Q - documentation check
Save years of study with Philipp Lackner ^_^
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.
Then feel free to tell us your favorites here :)
@@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!
@@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
I wish I knew cltr+shift+f ! I hadn’t to grep into projectDir...😥
Or maybe use vim plugin
Ctrl + Alt + L which reformats whole code in a file and clears unused imports..
I am already using VIM..
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. 🥳
Just use vim