30+ Eclipse Shortcuts Every Java Programmer Should Know

  Рет қаралды 122,599

Coding with John

Coding with John

2 жыл бұрын

Eclipse has tons of shortcuts for you to code Java faster. But there are just so many hotkeys and keyboard shortcuts, which are the most useful?
We'll go through 30+ amazing shortcuts for the Eclipse IDE when coding in Java. Once you learn them, you'll be able to code all your Java programs faster, and waste less time doing work that the Eclipse IDE can do for you.
Subscribe for more Java tutorial videos!
Learn or improve your Java by watching it being coded live!
Hi, I'm John! I'm a Lead Java Software Engineer and I've been in the programming industry for more than a decade. I love sharing what I've learned over the years in a way that's understandable for all levels of Java learners.
Let me know what else you'd like to see!
Links to any stuff in this description are affiliate links, so if you buy a product through those links I may earn a small commission.
📕 THE best book to learn Java, Effective Java by Joshua Bloch
amzn.to/36AfdUu
📕 One of my favorite programming books, Clean Code by Robert Martin
amzn.to/3GTPVhf
🎧 Or get the audio version of Clean Code for FREE here with an Audible free trial
www.audibletrial.com/johnclean...
🖥️Standing desk brand I use for recording (get a code for $30 off through this link!)
bit.ly/3QPNGko
📹Phone I use for recording:
amzn.to/3HepYJu
🎙️Microphone I use (classy, I know):
amzn.to/3AYGdbz
Donate with PayPal (Thank you so much!)
www.paypal.com/donate/?hosted...
☕Complete Java course:
codingwithjohn.thinkific.com/...
codingwithjohn.com

Пікірлер: 210
@pesterenan
@pesterenan 2 жыл бұрын
When you hold CTRL+ALT+ DOWN you can duplicate the line that you have selected. Pretty useful!
@sayyedwaliullah5587
@sayyedwaliullah5587 2 жыл бұрын
But what about ubuntu user yar it doesn't work here in my system.. it just minimise and maximize the opened tabs and windows
@TyrellJoanna
@TyrellJoanna Жыл бұрын
@saiprasanthpk17
@saiprasanthpk17 Жыл бұрын
@@tarikkirat can we change the settings of shortcuts
@for.you.tube.
@for.you.tube. Жыл бұрын
@@saiprasanthpk17 Yes. Press Ctrl + Shift + L. When shortcuts open, again press Ctrl + Shift + L. Then you can change. Or you can go to preferences and change there.
@bodymurat
@bodymurat 10 ай бұрын
@@sayyedwaliullah5587you have to remove the keymapping from Ubuntu if you don’t want to use it as a system shortcut, then eclipse will catch it
@ensislucis2395
@ensislucis2395 5 ай бұрын
The getters and setters were actually life changing
@markatkinson5447
@markatkinson5447 2 жыл бұрын
Really appreciate your sense of community and willingness to share. Our secondary benefit is that you are REALLY good at presenting your ideas clearly and quickly. Thank you.
@francksgenlecroyant
@francksgenlecroyant 2 жыл бұрын
This is the most important video in my life as a Java developer using Eclipse and Eclipse based IDE like STS, thank you John!
@wakskater4996
@wakskater4996 2 жыл бұрын
Your videos are really really helpfull, this one in particular ! It gives me a real confidence boost & the feeling that I'm not completely lost. Somehow you explain the funktion of java way better than my teachers without even using my native language. I can even watch them for entertainment purposes. Big Thanks !
@noelpadavan5674
@noelpadavan5674 2 жыл бұрын
The most underrated video I’ve seen on eclipse shortcuts. Awesome!!
@misterdneh
@misterdneh Жыл бұрын
I've been self teaching (meaning watching guides, trial and error learning, reading docs and so on) Java for almost a decade and sometimes I forget certain things myself than see your content which helps me understand a bit more too lol.
@nagakobe5107
@nagakobe5107 2 жыл бұрын
Thank you John for The most underrated video I’ve seen on eclipse shortcuts. Awesome!!
@petarJK
@petarJK 2 жыл бұрын
As an intellij user, when I had to use eclipse for a spring course, I was very miserable at first. This video helps a lot. Thanks.
@Devilzlegacy
@Devilzlegacy 2 жыл бұрын
Im in my Junior year of CS. The hours that I could have saved If I watched this earlier AHHH
@dlittlehoboapps1438
@dlittlehoboapps1438 2 жыл бұрын
I love your short videos I am studying for java certification and your videos really make things clear for me.
@Frank-mo4is
@Frank-mo4is 5 ай бұрын
Great demonstration. Thanks for sharing these useful shortcuts.
@NiceChange
@NiceChange Жыл бұрын
I absolutley loved this video. my production just went sky high. Thanks so much.
@phattrinh217
@phattrinh217 2 жыл бұрын
One of the greatest video about eclipse ever made. Thank you sir.
@1starbrainfire
@1starbrainfire 9 ай бұрын
This video is great! Thank you so much for sharing 😃
@jam-yh9il
@jam-yh9il 2 жыл бұрын
Your videos are consistently amazing, thanks John!
@RafaelPetro-pn4nw
@RafaelPetro-pn4nw 3 ай бұрын
Amazing! This is so helpful!
@alejandrodelatorre1888
@alejandrodelatorre1888 2 жыл бұрын
Thank you for all the knowledge you have given in your videos
@gabucarneiro
@gabucarneiro 2 жыл бұрын
THE best!! Really helpful and excellent explanations! Thank you so much!
@anbalaganramu8454
@anbalaganramu8454 4 ай бұрын
Super useful. Thanks.
@ajayanand3353
@ajayanand3353 Жыл бұрын
Kudos for making such a useful video on this , its very helpful for java programmers who work on eclipse as their IDE.
@deabsoluteschwarz
@deabsoluteschwarz 2 жыл бұрын
So many useful ones in here. On more is Alt + Shift + L to extract to variable
@josueramirez7247
@josueramirez7247 2 жыл бұрын
How does this one work? I bet you select some expression, and it makes a variable declaration/assignment with it, right?
@dhickey5919
@dhickey5919 Жыл бұрын
John, these timesavers are amazing! Makes coding more fun than work. Cheers.
@lincmeng634
@lincmeng634 2 жыл бұрын
Great video! Thank you John.
@adamlasry5225
@adamlasry5225 2 жыл бұрын
Great teacher. Thank you for all your Java videos.
@andreaw7787
@andreaw7787 Жыл бұрын
This makes life soooo much easier! Subscribed!
@prasannalakshmi6814
@prasannalakshmi6814 Жыл бұрын
Thank you for useful short cuts.
@tonydeveloperdndndn
@tonydeveloperdndndn Жыл бұрын
Wow. That's really helpful. Thanks a lot.
@inghy98
@inghy98 2 жыл бұрын
Control alt down to duplicate selected code block, that is really helpful
@ameyadeshpande6617
@ameyadeshpande6617 2 жыл бұрын
Hey love your videos!!! Could you also do a quick video on how we can customise Eclipse like dark theme, and how to use different colors for variables, data type, etc. Would love to see that
@yagoaguero88
@yagoaguero88 Жыл бұрын
Thanks John for the video. I really believe that learning shortcuts takes you and your devs to the next level!
@CodingWithJohn
@CodingWithJohn Жыл бұрын
IDEs do a LOT for us if we can learn to use what they can do.
@TheCalmshadow
@TheCalmshadow 8 ай бұрын
This vid is a must watch for new coders using eclipse
@swapnilkawade
@swapnilkawade 2 жыл бұрын
Thank God. It was Damn helpful.
@thexfactor9999
@thexfactor9999 2 жыл бұрын
I enjoy your videos, but would like to see you do one on swing and thread interaction.
@fredericoasoares
@fredericoasoares 2 жыл бұрын
As you mentioned, ctrl + f11 start run app. I'd like to add just f11. It starts debug mode app.
@user-do3df3rj5m
@user-do3df3rj5m Жыл бұрын
Thanks. Very useful 👍
@IloveGod5556
@IloveGod5556 Жыл бұрын
Thank you. This is really relevant. God bless your channel.
@lyxlyxkggkygncgzkg3182
@lyxlyxkggkygncgzkg3182 Жыл бұрын
Thank you so much
@souravroy4090
@souravroy4090 2 жыл бұрын
THANKS A LOT. IT WAS A LIFE SAVER
@d0rzA
@d0rzA 2 жыл бұрын
Thank you so much !!
@365ican
@365ican 2 жыл бұрын
Awesome, thank you so much ^^
@salvatore.masuzzo
@salvatore.masuzzo 2 жыл бұрын
One very useful shortcut is shift+alt+j. It creates the template for either class or method documentation. It is most useful where methods have one of more parameters, a return type an perhaps some definition of generics. I also have another observation to make... you talked about poor code formatting and also difficulty about finding the beginning and end of a block of code. I do not know (and don't need to know) the relevant shortcut that swithes between braces, because the problem is automatically resolved by the use of the Allman Coding Style, which I always apply. I would encourage you to present your sample code with that style.
@adeshahugar1141
@adeshahugar1141 Жыл бұрын
thank you john
@hunterftw8563
@hunterftw8563 2 жыл бұрын
Similar to moving lines up/ down using the Alt + Up/Down shortcut, We can replicate a piece of code by selecting the code and then press Ctrl + Alt + Down. This will create a copy of the selected code just below.
@felipegomes6312
@felipegomes6312 2 жыл бұрын
thanks for the tip
@carsonstept6015
@carsonstept6015 Жыл бұрын
okay, this is my favorite thing ever im about to make some cleeeeeean code
@James-ed9cl
@James-ed9cl 2 жыл бұрын
Thank you so much !
@urrxca
@urrxca 5 ай бұрын
With any doubts , you are the best teaching java in whole internet that I've ever seem. If you consider in the future get a patreon or something like that, I will be one of your subscriber surely
@jeyavanicm1224
@jeyavanicm1224 2 жыл бұрын
Great video ..Thanks
@bibahbibah5108
@bibahbibah5108 2 жыл бұрын
thnx , very helpfull . that make easy to switch to eclips
@Lumary
@Lumary 2 жыл бұрын
Thanks a lot!😊
@user-dl6qs1sq8h
@user-dl6qs1sq8h 2 жыл бұрын
Thank you very much , your amazing
@vijaygaikwad6367
@vijaygaikwad6367 Жыл бұрын
Very helpfull and nice video....
@sabeennawaz1001
@sabeennawaz1001 Жыл бұрын
This video is awesome
@harshtripathi4565
@harshtripathi4565 2 жыл бұрын
Very useful tutorial, making daily work easy and smooth to write. If possible can you create one for IntelliJ IDE also. Thanks a lot for you work.
@WarzoneMasters
@WarzoneMasters 11 ай бұрын
just thanks!!!
@shivprasadbulbule6052
@shivprasadbulbule6052 2 жыл бұрын
Thank you sir ...!!
@rahuls331
@rahuls331 Жыл бұрын
You can perform fast scrolling by holding alt or option key. This is pretty useful when you have large code.
@stephengusi6867
@stephengusi6867 Жыл бұрын
great video
@azeemali7102
@azeemali7102 Жыл бұрын
Your the best!
@vmishra3054
@vmishra3054 Жыл бұрын
Well done
@robert202
@robert202 Жыл бұрын
subscribed!
@nordicvolkan
@nordicvolkan 2 жыл бұрын
very useful
@chuckbaranoski6184
@chuckbaranoski6184 2 жыл бұрын
Great video. Trusting you that you covered all of most important ones, but thanks for showing where to find the rest of them! Lol
@renejacques8288
@renejacques8288 Жыл бұрын
Instead of sysout you can just type syso. Excellent video. I've been wondering about some of these. Thanks.
@vithushan9043
@vithushan9043 Жыл бұрын
it's awesome 😍
@jvsnyc
@jvsnyc 2 жыл бұрын
I will watch this video probably the most times of any of them. I know about 1/3 of them but the others are very useful...the CTRL-SHIFT-L is great but watching you do them while hearing you talk about them helps get them into the part of the brain they need to be in, automatic actions like scratching an itch...
@CodingWithJohn
@CodingWithJohn 2 жыл бұрын
Glad it was helpful! There are a bunch I didn't know about myself until I started doing the research for this video that I now use regularly.
@jvsnyc
@jvsnyc 2 жыл бұрын
@@CodingWithJohn Venkat Subramanian likes to joke that advanced Java programmers are obsessed with figuring out how to get their ides to write as much of their code for them as possible. This shows many, perhaps most of them, in one video. Some say not having the code there at all is better than not having to type it. Yeah, until you are debugging code you can't see, I think.
@CodingWithJohn
@CodingWithJohn 2 жыл бұрын
True. I do LOVE Lombok though and we use it throughout our applications. Add once you're familiar with each particular tool like that there's less and less need to debug through the code they generate.
@gregoiremartinetti2745
@gregoiremartinetti2745 2 жыл бұрын
ALT SHIFT L -> extract to variable, most usefull with alt shift r :)
@adriansmith38
@adriansmith38 2 жыл бұрын
Ctrl-Shift-R also takes the upper case letters of a class - e.g. MSC for MySimpleClass
@nahidasultana6842
@nahidasultana6842 Жыл бұрын
Thanks for the incredible tricks! If I accidentally hit something and don't know where and I want to go back where I was, what will be the shortcut?
@danielcommins1285
@danielcommins1285 2 жыл бұрын
I use the shorter "yso" Ctrl+space for the printing shortcut. A middle schooler told me about it!
@demirg
@demirg 2 жыл бұрын
You mean “syso”?
@danielcommins1285
@danielcommins1285 2 жыл бұрын
@@demirg nope, I mean "yso". I used to type "syso" then I found out that "yso" also works
@louiemunoz
@louiemunoz 2 жыл бұрын
awesom
@naveenb.h5114
@naveenb.h5114 2 жыл бұрын
Thank you John its a wonderful session keep posting videos
@vivekchanmal8664
@vivekchanmal8664 Жыл бұрын
videos are nice
@djoezi3662
@djoezi3662 2 жыл бұрын
Very useful! Thanks a lot. Subscribe and like 👍🏼
@christophkrass6929
@christophkrass6929 2 жыл бұрын
this is sooo helpful! Thank you
@kalden.s814
@kalden.s814 2 жыл бұрын
Very clever boy
@levon9
@levon9 3 ай бұрын
Been subscribed for a while - great videos. I get your feeling, but speaking as a CS prof who has been teaching Java to undergrads for a long time, I also don't show these shortcuts to my students until they have mastered writing their own getters/setters and constructors, etc. Only after that they have mastered these concepts and skills, will I show them the shortcuts to avoid the more tedious aspects of it. Though I encourage them to explore "Eclipse Tricks and Tips" and if they discover this on their own before I show them, it's fair game. By the way, curious, Eclipse or IntelliJ? I've been using Eclipse for ages, but taking a look at IntelliJ - I should check, maybe you have a video. PS: Your Intro to Threading video is excellent and I have my students watch it.
@user-ur3gr2qs6i
@user-ur3gr2qs6i 2 жыл бұрын
I used to hate eclipse. Now I can’t wait to go home and practice.
@felipegomes6312
@felipegomes6312 2 жыл бұрын
I tried all others IDE for Java but I always come back to Eclipse. It may not be the most clean looking or the lightest but it never leaves me hanging for too long, it always has what I need.
@jiauke
@jiauke 2 жыл бұрын
nice
@shivampandey-oc9bm
@shivampandey-oc9bm 2 жыл бұрын
please explain one video on serialization and desirialazation
@gracebrace019
@gracebrace019 Жыл бұрын
I am subscribed to your channel, I watch almost all your videos, appreciate your work. I must mention, It was inappropriate for you to say "Would have slapped him on his face for not showing you shortcuts." Professors want those fundamental concepts to be embedded in your head, hence stop you from using tools early on. You can relate this, by observing how introducing a calculator early in American Secondary as well as High Schools almost cripple the students and majority of them suck at Math. Compare this with students coming from of Chinese or Indian education systems, where they are forced to do mental calculations for roots, cube roots, squares, factors, trigo, geo, calculus..... you name it everything!!! Makes them way more competitive in Math or any technical knowledge.
@abhinavbahuguna1771
@abhinavbahuguna1771 2 жыл бұрын
Hope you are doing well. i have a specific request . Can you please provide inputs for writing a secure code in Java.
@vishalzerikunthe2723
@vishalzerikunthe2723 2 жыл бұрын
really like it so...............
@kapiljain7596
@kapiljain7596 2 жыл бұрын
Please make a video on intellij shortcuts
@vigneshgc3391
@vigneshgc3391 Жыл бұрын
1:00 For some reason when I use this shortcut on sysout, it gives me a list with options (sysout, syserr, mains args, args) instead of directly converting it to System.out.println(). Do I have to enable any option for it to work?
@pavangubba3257
@pavangubba3257 2 жыл бұрын
Could you please do the video of debugging the code in real time environment
@thomasfahy1926
@thomasfahy1926 2 жыл бұрын
at 2:54 how are you able to get eclipse to say "condition" within the ()? My eclipse autofills or disappears and I don't want that. I want to know what's supposed to go in that () because I'm still very new.
@8015908
@8015908 2 жыл бұрын
I was about to subscribe, but then I realized that I already am.
@kandualmahesh3547
@kandualmahesh3547 Жыл бұрын
Please make video on STS
@Christian-of1tz
@Christian-of1tz 2 ай бұрын
Ctrl+1 and Ctrl+3 are the most useful shortcuts I know
@deboking9
@deboking9 2 жыл бұрын
God will bless you, Sir
@technofreak39
@technofreak39 Жыл бұрын
0:58 "so you can immediately just start typing out .. "whatever you want"" I had to giggle a bit :D
@BiagioRosarioGreco
@BiagioRosarioGreco Жыл бұрын
HI. I have a Hamletic doubt. In Java lang is it possible to create an interpolated string like it happens in languages ​​like Python, PHP, C# or others? I know I can use "a = %d".formatted(myIntVar); but I would like to know if something like "a = {myIntVar}" is also possible. Waiting for help
@_Anna_Nass_
@_Anna_Nass_ 2 жыл бұрын
First year student watching this now so I can save maximum time 😎
@otamisan
@otamisan 2 жыл бұрын
alt + up or down arrow keys to move whole line codes up and down. ctrl + alt + up or down arrow keys to duplicate whole line of codes
@user-fw9pg9lu2i
@user-fw9pg9lu2i 7 ай бұрын
Just follow the step click on Window -> Preferences -> Java -> Editor -> Content Assist = Auto activation triggers for java.
@overdoscream
@overdoscream 3 ай бұрын
can you do the same thing with intelliJ shortcuts please?
@Atropos148
@Atropos148 Жыл бұрын
Damn, that professor making you type out getters really wanted to teach you a lesson :) I guess it worked
@anupamdas2022
@anupamdas2022 2 жыл бұрын
ctrl + 1 - most used.
@sujitpatra3589
@sujitpatra3589 Жыл бұрын
It's really awesome
@SoumenMittra
@SoumenMittra 2 жыл бұрын
Can you create a similar shortcuts video for Intellij
Array vs. ArrayList in Java Tutorial - What's The Difference?
17:36
Coding with John
Рет қаралды 506 М.
The Java Memory Model - The Basics
23:41
Jakob Jenkov
Рет қаралды 122 М.
ЧУТЬ НЕ УТОНУЛ #shorts
00:27
Паша Осадчий
Рет қаралды 8 МЛН
Observer Pattern - Design Patterns (ep 2)
49:47
Christopher Okhravi
Рет қаралды 558 М.
Java Custom Exceptions Tutorial - It's Way Easier Than You Think
14:29
Coding with John
Рет қаралды 151 М.
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 774 М.
How To Think Like A Programmer
1:00:07
Coding Tech
Рет қаралды 2 МЛН
C# Events and Delegates Made Simple | Mosh
32:04
Programming with Mosh
Рет қаралды 937 М.
Java Enums Explained in 6 Minutes
5:58
Coding with John
Рет қаралды 250 М.
Static vs Non-Static Variables and Methods In Java - Full Simple Tutorial
11:29
C++ Tutorial for Beginners - Learn C++ in 1 Hour
1:22:56
Programming with Mosh
Рет қаралды 3,8 МЛН
#51 This and Super Method in Java
12:11
Telusko
Рет қаралды 93 М.
ЧУТЬ НЕ УТОНУЛ #shorts
00:27
Паша Осадчий
Рет қаралды 8 МЛН