Top 5 IDE Productivity Hacks That Will Save You Time Programming

preview_player
Показать описание
Save time programming

With all the tools available to us in modern IDEs, being a more productive programmer isn't about typing faster. Instead, knowing and taking advantage of powerful IDE features can automate a lot of the mundane and error prone tasks that waste your time, allowing you to get on with the good stuff. In this video we take a look at my top 5 IDE productivity hacks that save you time by letting your IDE do the work for you.

CONTEST CURRENTLY CLOSED! The winners have been contacted!

OFFICIAL CONTEST RULES:
2. YouTube is not a sponsor of the contest and viewers are required to release YouTube from any liability related to the contest.
3. Privacy notice: no personal data will be collected for this contest.
4. In order to enter, you must (a) be one of my subscribers, AND (b) make a top-level comment to the video including #mcoding somewhere in the comment.
5. The contest is free, there is no fee required to enter.
6. Winners will be chosen randomly 1 week after the date the video went live from all users who have entered and not been disqualified.
7. Each winner will be notified via a comment reply from me that details what prize was won (e.g. "Congratulations! You have won XYZ. Please email me."). I will ask the winner to contact me by email, and I will reply through email with a random token which must be posted as another reply to the winning comment from the winning account in order to verify account ownership and prevent fraud.
8. Each winner will have 72 hours to respond AND prove account ownership or their prize is automatically forfeited and another winner will be chosen.
9. A winner can only win 1 prize per contest.
11. You may not enter the contest if doing so would be a violation of any relevant federal, state, and local laws, rules, and regulations, including U.S. sanctions.

SUPPORT ME ⭐
---------------------------------------------------
Sign up on Patreon to get your donor role and early access to videos!

Feeling generous but don't have a Patreon? Donate via PayPal! (No sign up needed.)

Want to donate crypto? Check out the rest of my supported donations on my website!

Top patrons and donors: Laura M, Jameson, Dragos C, Vahnekie, Neel R, Matt R, Johan A, Casey G, Mark M, Mutual Information, Pi

BE ACTIVE IN MY COMMUNITY 😄
---------------------------------------------------

CHAPTERS
---------------------------------------------------
0:00 Intro
0:23 #5 Show type hierarchy
1:03 #4 Code folding
2:15 #3 Introduce var/const/param/func
5:08 #2 Rename
6:58 #1 Move
8:40 Runner ups
Рекомендации по теме
Комментарии
Автор

ctrl + H: open hierarchy menu
ctrl + alt + V: replace all occurences
ctrl + alt + P: extract and replace all occurences to new var
ctrl + alt + C: extract and replace all occurences to constant
ctrl + alt + M: extract code to function/method
shift + F6: rename everywhere
F6: extract code to new file

elrandira
Автор

Damn tip 3! I've done those maneuvers many times and never knew these shortcuts. One thing to add is, it's important to actually practice these shortcuts. Hearing them isn't enough. You need that muscle memory.

Mutual_Information
Автор

Wow, I almost didn’t click on the video because so many “productivity hacks” are low hanging fruit, low effort videos. This was incredible 👏

MCoding in a league of his own.

damonguzman
Автор

When yov've said "how about close IDE and get some sleep" I laughed so hard
#mcoding

nikitkuzi
Автор

6:57 is the greatest time saver. really.

yash
Автор

My favourite hack is the opposite of Tip 3: Inking. When refactoring away complicated code, I might end up in a situation where a function consists of a single statement, or is used only once. So, I might just inline it, and I love how I can choose whether I want to inline all usages or just the specific one

NikitaKaramov
Автор

#mcoding
Alt+Shift+E to run the selected snippet in an iPython interpreter complete with a variable explorer to debug.

vabhv
Автор

5:38 tip: if Shift+F6 is hard to press, instead right click and press R twice, that is what I personally use, it does the same thing (this tip also works for when the shortcuts are hard to press. you rmb and practice using the letters to it) #mcoding

glorytoarstotzka
Автор

Just remember people, the standard libraries' documentation varies from good to completely useless, or close to nonexistent. If you are fortunate enough, you might at least be able to read their commit log, which they have neatly left in the source code for multiple decades

knut-olaihelgesen
Автор

Great video. Whatever is your IDE of choice and no matter your experience just open up the keybindings menu and look through every single option. In a week you'll be using IDE without touching the mouse ever again! If you're already doing that it's always good to look through the options once again. Jumping between the files, quickly opening the file you're interested in, code refactoring, running app, running tests, creating new files - you'll get all of that in week and you'll ask yourself why you haven't used it before jumping all over your projects looking like an alien to anyone who looks at you working! Then add you own keybindings, change things here and there and there you are! Also you'll miss them whenever you'll have to type something without them and that can be painful experience.

Mahj
Автор

Neat. Some of these are somewhat difficult to accomplish in Vim. Although, I do avoid renaming things by writing an outline for my project before I get started. While this is just my personal opinion, I find that planning often yields better results than just winging it and needing to rename things as I go. One of the features I've been using for years is code folding, and I don't know if PyCharm has a setting for this, but in Vim I can set it to automatically fold everything by default. Then instead of telling it what to fold, I tell it what to unfold. Really helpful for editing older and larger projects. And your quip about sleeping is spot-on. When I first wake up, after pulling keycaps from my forehead, I'm a lot more productive.

anon_y_mousse
Автор

Great video. All great tips, must have saved me hundreds of hours over the years. #mcoding

Two underrated/not widely known (IMO) features/shortcuts:

1. Extend Selection (ctrl+W / opt+up-arrow (macOs)) – this comes in handy when trying to select a section of code. You can place your caret anywhere in the code you want to select and repeat the shortcut as many times as needed to select higher and higher scope until you get everything you wanted. Extra useful when trying to select a section of a code to be extracted to a function.

2. Add Selection for Next Occurrence (alt+J / ctrl+G (macOs)) – quickly creating a bunch of carets exactly where you need them for multi-line editing

TheDorsvmine
Автор

bro... that doctring code folding is amazing

valeriusandof
Автор

'how bout getting some sleep' HAD ME ROLLING
THE CUT WAS PERFECT TOO

supermonkeyqwerty
Автор

You forgot about most important one, maybe not saving most time, but helping a ton. Double shift to have "omnisearch" bar - searching through commands, parts of the code etc. Bonus - it gives you hints about keyboard shortcuts for commands

Medan
Автор

Nice. Need a cheatsheet with all the keyboard shortcuts. #mcoding

brainforest
Автор

great video #mcoding
one of my most loved pycharm shortcut is ctrl + alt + left_arrow/right_arrow, it moves your cursor to the places your cursor has been, it makes moving between places way faster

emilksenzovski
Автор

Would have been helpful if you would have had the shortcuts as text transcript in the video itself

neckbro
Автор

I `Ctrl + B` is useful for larger objects, but for quick check up of simple things I prefer `Ctrl + Shift + i` (Quick Definition) it not jump to definition rather show pop-up

MichalPlichta
Автор

ooh I like the relativity project, processing events as either timelike or spacelike. nice reference :)
(btw small nitpick but it's important in relativity, you also have null/lightlike, which is when the interval is 0. It's important because it's what you get with objects travelling at the speed of light)

MooImABunny