IntelliJ IDEA Tutorial

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
assalamualaikum what's going on guys welcome to amigos code in this video i want to teach you everything you need to know about intellij if you are a java programmer or you are learning java or you are using frameworks such as springbook then intellij is for you i've been using intellij for more than 10 years now before i used to use eclipse and i gotta say like intellij is the ide for professional software engineers everyone uses it and you should also use it if you're new to amigos code go ahead and subscribe smash the like button join both private facebook group as well as discord the community is growing for this video i'm going to be giving away a free full license for a year for all of these jetbrain products so intellij ultimate edition golang python professional and pretty much everything for free and all you got to do is just subscribe to this channel uh follow me on twitter so i'm trying to gain a following there so twitter and join both private facebook group as well as discord so that's all you gotta do so yeah so without further ado let's kick off this video so the best way for you to install intellij is to navigate to jetbrains.com and then search for toolbox dash app so here you can manage all the tools in one single application you can update the apps you can delete them install reinstall and it's super super cool so this is actually what i'm using so in here so this is the toolbox and basically you can see all the applications here right so community golan this is what i have installed pycharm as well intellij ultimate android studio pycharm professional webstorm php data grip it's amazing this one ruby if you want to do ios development so on and so forth right so i'm going to teach you about intellij and you got to know that intellij you've got two versions you've got the ultimate edition as well as the uh actually community edition as well as the ultimate and the difference really is that the ultimate version gives you extra features such as web development um connecting to databases so everything that data grip has everything is embedded in inside of the ultimate and support for frameworks such as springboard right so um you know most of the times you won't need it but if you have the ultimate it's just it's just it's a nice to have it's so so so good um and yeah so stay tuned subscribe join facebook discord and twitter to win the prize literally just just just join i'm gonna be announcing by the way um end of this month so stay tuned so yeah so let's uh let's go ahead and actually create a project so once you install intellij you'll get this um welcome window right here and this is where you can create a project so you can configure but don't worry i'm going to show you exactly how to configure this in a second so for now go ahead and create a project and this is what you should see so you can create a bare bones java application or using maven gradle javafx no one uses it groovy kotlin yeah kotlin is quite nice as well but yeah most most of the times you're going to be using maven or gradle and then you can pick your java version right so here i've got java 11 and 12 and if you want you can i think i also have 14 but if you want you can download the jdk from here and basically it will do the rest for you so let's go ahead and stick with java 12 but this will work for any java version that you have and also i don't want a javafx application i want a maven one so now here you can create a one from an archetype so we want the simple maven project next and then here let's simply say app and then finish and there you go it's as simple as this so here you can see that we have the pom.xml so this is maven specific so this is where for example you you would install all of the dependencies for your project so let me actually now put this full screen so i want to see everything and right here you can see that we have a couple of things here around uh but don't worry i'm gonna i'm gonna make sure that you are quite comfortable and also things are very organized here which makes it super easy to understand so in here let's um open up the app folder so this is the actual folder structure and then you can see that we have the java um folder here and this is blue so this is where you will put all of your java code so what i want to show you first is how to configure so to configure intellij you can go to intellij in here and then go to preferences and then here you can configure for example themes whether you want light dracula so for example if i change this to white oh my goodness yeah this is too too light but yeah but you can choose between any of those um so if i apply i just want to stick with that one and then also you can increase the font size here i'm going to do in a second but i want to show you here so if you go to uh plugins in here um this is where you can download plugins so for example if i go to theme you can see that you have a bunch of themes so material ui this one is quite popular and quite nice but i just stick with the defaults and then one dark theme you can also use it and many others to choose from but as i said i just like the default one and then here um the actual plugins so let me see what i have installed so you can see that i've got a couple of things installed here but you've got git integration so on and so forth so one plugin that i want to show you is this guy here so kite so let's actually enable this guy so this one is is a fairly new plugin but you can see that so if i go to marketplace so let's search for kite you know 43 000 downloads and the rating is quite good right and the reason is because kite gives you all the tools for you to be more productive and it basically is just using ai to give you coding suggestions so basically with intellij and then kite you can write code so much faster and you can you can let the ide do the job for you if you want right so i'm looking forward to use this they even have this thing called um i think it's the co-pilot and basically it's like a mini stack overflow where you can see examples if you are stuck how people use the library so on and so forth so it's available in all of these ides i think it's 13 and 16 languages so yeah so kite give it a try so let's now go to build and i want to show you something so here build and then compiler and then expand that and then go to java compiler so here um sometimes you might see that your code will not work and this is and it's because of this so let me change this to java and then 12 and then apply also what i'm going to do is actually go to appearance and i'm only doing this so you can see everything and nice um on the screen so apply and you can see things are much bigger now you shouldn't do this but you also have if i go to i think it's in so appearance um editor general well actually it was their font here you can increase the font size if you want as well and also the actual font right i'm just going to keep the defaults there so i've enabled kite so i need to restart so just give it a second and there we go so you see that it's amazingly fast boom so kite now is installed so we can even learn how to use it i'm going to skip it for now and what i want to show you here is the following so you see that we have this folder blue and this is where we have our java classes right so let's go ahead and quickly create a main class so i've just pressed control and enter and you could right click and then new and then java class is the exact same thing so main and then enter and there we go so now we have a main class so every main method should have actually every main class or actually the main class should have the main method so you could say public static void main but this is too long you can say public static void main enter you got the main method there or even better you can say main and then you have the main method there so now i can say system dot out dot print line and basically this is too long as well we can say south and then hello amigos and then run this and there you go so i just wanted i just want to show you that these are some of the areas that you might encounter but to fix this is very straightforward so what what you got to do is so it says java error release version not supported so it is fine so go to file at the top and then project structure command and then semicolon so with intellij i love to use the keyboard shortcuts and i do recommend people start using keyboard shortcuts but check this out if i press command and then semicolon you can see project structure via command and then semicolon and you can see the equivalent for windows so this plugin is called presentation assistant go ahead and install it because it will teach you how to use intellij so here inside of modules you can see that we have sources and then language level let's just set it to 12. so this is what we are using and there we go so this now should fix this problem and there we go so you can see that we have hello amigos let's now create a class a quick class so again i i always try to use the keyboard as much as possible so ctrl enter new class and then in here i'm going to say person and inside of this class let's have a private final and then string name let's just keep it simple and basically now we need the constructor getter setters and all of that stuff right to the string hash code so here i'm just going to press option and then enter and then i can add to constructor parameter there we go and then if i want the getter so type get name if i want to string to a string select that and you can see it's just it's just amazing so it's really really awesome and now let's go back to main and let's create a person so new and then person and then pass jamila and then end up with semicolon so i've just pressed shift command and then enter so here shift command enter it completes the line so complete current statement you can see the keyboard shortcut down below so here let me actually extract this to a variable again you can see the keyboard shortcut down below and i'm going to say person and then here i'm going to say system.printline to long south and then person dot oops person dot and then get name let's run this and there you have it you can see that you have jamila here so you can see the power of intellij so intellij is amazing guys so one thing that i want to show you here is you see um in here we have project structure favorites and then run basically you can access all of these panels by using the keyboard shortcut so i can press command 1 and this closes the project tab i can press command seven that opens the structure so here we only have one method and then favorites command two and then run command four and you can see that it's just it's just gray right and at the top here you can see that this is how you run so you can run the project you can debug so on and so forth one thing is with intellij if you want to create a class um you can do it many ways right so let's say that you want to create class um actually a test so let's have for example a class called service right and you want to create tests for this class so let me show you that if i if you press shift two times so here you can search anything literally anything right and here uh if i search for go to test i think it's go to test go to test go to test there we go so go to test you can see the keyboard shortcut there and what i'm gonna do is actually say shift command t oops shift command t there um i was i was outside of the class so shift command t and then you can see that it wants to navigate to a test but it doesn't have one so let's create one and you can say right i want the junit give me the setup give me the tier so on and so forth so if i say okay you can see that we have a test class and basically here we don't have junit installed and this is where you do it inside of the maven so let me just comment that out and even inside of test so you can see that this is a test that we have service test so basically it's the actual class name and then and then test one other thing is that things get compiled into target so target right so if i delete target i just want you to see so delete target and let's open up main and then run again so i've just pressed the play button there you should see that target now so i'm going to press command 4 target has been created again you can see here and you can explain classes and you can see the the actual class so this is the byte code right um and if you have jars so all the jars will will actually be in there oops i didn't want to do that right so there you have it so you can see that you learn about testing um how to create main class and one thing about testing if you want to learn more about testing go ahead and check amigos code a website i've got a full course just on testing teaching you integration tests unit testing testing external services tdd and a bunch more so one last thing that i want to show you here is that intellij is the ide for you as a java software engineer intellij has everything you need so in here what i'm going to do is actually select or actually go to the menu and then vcs you can see that we have vcs operations pop up so it's the actual um tilde there oh actually the hat sign and then v click on that and you can see that we can basically enable version control so if you are using git for example you can do it so let me actually use the keyboard shortcut here so control this is my control this is for me for me it's control v and then enable version control git okay and now you can see that look these are are are red right so because we need to stage them so i've just pressed command k there right so let me press ctrl and v and you can see that now we can commit we can push command file roll back and basically do everything that you would do with um another version control um tool such as uh sourcetree for example right so now let's say we want to commit and we don't want to commit anything in idea we just want everything in main as well as test not the target and obviously you'd have your git ignore so message hello and then commit and check this out they were green and then it's gone right so now um we can actually push them if we want so here i'm gonna press ctrl and v again and then we can push them so for this we need to define a remote which is out of the scope of this video right but this is you would set up your actu your remote if you're using git um then it's it's really straightforward but here have a look so if i add a space you can see that this becomes green because it's a new change and i can even roll back here so roll back and it's really really good right so if i go to get in here so command and then 9 and basically you can see the local changes console as well as the log messages so it's really really really awesome this ide and there you have it so this is a quick tutorial on this awesome ide i hope that i convince you that you should start using intellij because it's the tool for you out there whether you're using java a spring boot anything to do with the jvm intellij is for you so as i said at the beginning of this course i'm going to be giving away a free one-year license for all the jetbrain products so here so all of these products for free one year right and also if you are interested in python i also have a code which i will leave down below where you can try the python professional for four months so i was given these codes to give to the community so i'm just sharing this with with you guys right so go ahead and join the community twitter and subscribe to amigos code channel and if you want to learn more about intellij go to youtube or my website really doesn't it doesn't make a difference here but if i search for um intellij i do have a full course just on intellij you can see here so i've done it a year ago so this is the complete course two hours and a half just on intellij because i feel like this is a tool that you should know also um if i go to amigosko.com if you want to gain a certificate from these courses go ahead and basically enroll on this course where you get a certificate upon completion so this is all for now i hope that you enjoyed this video give me a thumbs up so i can keep on recording these videos let me know what you thought about this video this was a bit different than what i do whether you want to see more of these and yeah so join the community like subscribe and i'll catch you in the next one you
Info
Channel: Amigoscode
Views: 35,784
Rating: undefined out of 5
Keywords: intellij idea tutorial java, intellij tutorial, intellij idea tutorial, intellij idea, intellij vs eclipse, intellij tutorial java, intellij github, intellij shortcuts, intellij install windows 10, intellij debugger tutorial, intellij gui, intellij git, intellij tips and trics, intellij git tutorial, java, java tutorial for beginners, learn java, java and intellij, java programming, java programming for beginners, eclipse ide tutorial, netbeans tutorial for beginners java
Id: XCqVCq249Iw
Channel Id: undefined
Length: 20min 28sec (1228 seconds)
Published: Thu Nov 05 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.