Java in Visual Studio Code (Getting Started)

Поделиться
HTML-код
  • Опубликовано: 15 окт 2024
  • Writing Java with Visual Studio Code
    This tutorial shows you how to write and run a simple Hello World program in Java with Visual Studio Code. It also covers a few advanced features, which you can explore by reading other documents in this section.
    With the Java Extension Pack, we also provide an easy way for you to start Java with VS Code by using the command Java: Getting Started from the Command Palette (Ctrl+Shift+P). This command opens a Quick Start guide as well as tips for code editing and debugging. It also has a FAQ to answer some of the most asked questions

Комментарии • 138

  • @hacked101
    @hacked101  3 года назад +3

    PLEASE WATCH THIS INSTEAD:
    ruclips.net/video/4p6gfrUXPxQ/видео.html

  • @gokumastergundam523
    @gokumastergundam523 3 года назад

    Please help, what do you do when you keep getting errors after you attempt to run any code. I'm getting: "Build failed, do you want to continue?" I'm also getting 6 problems stating scanner and system can put be resolved over and over

    • @hacked101
      @hacked101  3 года назад

      Please check your syntax

  • @t8ertot767
    @t8ertot767 3 года назад +4

    Thank you for this. A lot of courses assume you know have an editor and know how to compile it. Some things have changed since this video came out, but it was close enough to work

  • @bergweg
    @bergweg 4 года назад +2

    Hello, how did you change the font in the terminal to blue (C:\users....), and the Hello World to a different color (white)?
    Also is there a way just show the output of the java program (in this case the println), without all of the (C:\users....) stuff?
    thanks

  • @jens2635
    @jens2635 4 года назад +129

    4:3 and 480p. That must be a real hacker :D

    • @danielmethner6847
      @danielmethner6847 4 года назад +1

      it works, so why not :D

    • @sam5ta981
      @sam5ta981 4 года назад +3

      The ratio was 4:3,
      but boy did it help me.

    • @matiasg19
      @matiasg19 3 года назад +1

      Don't forget the 15fps and the audio pulsing :P

    • @mjc7172
      @mjc7172 3 года назад

      in 2020

  • @whoisalycat
    @whoisalycat 4 года назад +10

    As a 13 year old, planning to develop games, this is very helpful, thanks

    • @tobinek.3092
      @tobinek.3092 4 года назад +4

      Wish I started as soon as you did. I'm 17 and I too want to become a gamedev. Best of luck man

    • @joekerr4273
      @joekerr4273 4 года назад +3

      I would recommend c# and unity tho for that

    • @whoisalycat
      @whoisalycat 4 года назад

      @@tobinek.3092 I'm glad I did also. Seems like a very interesting career path.

    • @whoisalycat
      @whoisalycat 4 года назад

      Thanks! Best of luck to you too

    • @whoisalycat
      @whoisalycat 4 года назад

      @@joekerr4273 yeah I learned that probably gonna take time to learn c++

  • @b1ack_c0de
    @b1ack_c0de 4 года назад +6

    How to remove annoying command before output?

  • @jamescoffey129
    @jamescoffey129 4 года назад

    While you were writing the helloworld class you suddenly jumped to using the auto generator without explaining how you enabled it. This is an important step. Please explain.

    • @leeandersen4707
      @leeandersen4707 4 года назад

      Ya idk how to either and I really want to know

  • @Ayana_20
    @Ayana_20 4 года назад +2

    How to show the output Hello World only without that long lines of word?

    • @MegaSpiderpunk
      @MegaSpiderpunk 4 года назад

      same doubt

    • @HK-th3ix
      @HK-th3ix 4 года назад

      Change the Debug settings to console. Default value is terminal

    • @DEVASHISH_RAJ
      @DEVASHISH_RAJ 4 года назад

      @@HK-th3ix please elaborate , noob here

    • @HK-th3ix
      @HK-th3ix 4 года назад

      @@DEVASHISH_RAJ I use a Mac and was able to resolve it using the steps below. I hope it helps you as well
      From VS Code navigate to Preferences > Settings > Click on Debug under the User menu. Then find and click the Edit the settings.json. Set this value: "java.debug.settings.console": "integratedTerminal",
      Alternatively, this is the path to edit the settings.json file
      ~/Library/Application Support/Code/User/settings.json

  • @JPessel
    @JPessel 4 года назад

    Why does it display this long path before the actual "hello world"? Is that standard or can you deactivate that? at first I thought I made a mistake..
    Thanks in advance

    • @jerrycerrit2742
      @jerrycerrit2742 4 года назад

      If you dont want it to come directly after, print a new line before hand with System.out.println(" ")

  • @leeandersen4707
    @leeandersen4707 4 года назад +1

    Hey what shortcut do I need to download to use the auto generator for the very beginning of the code (at 8:05 when he uses it for the class part)

  • @ayeshask7536
    @ayeshask7536 2 года назад

    Java pack not install ?

  • @nukalaakshith8238
    @nukalaakshith8238 4 года назад

    There is one error which is also problem during debugs : - Couldn't start client Java Language Server
    How to solve this.

    • @hacked101
      @hacked101  4 года назад +1

      Make sure you have JDK installed

    • @nukalaakshith8238
      @nukalaakshith8238 4 года назад

      @@hacked101 ya it is there in path and java home but still everytime i open vs code it pops msg that couldnt start java language client server .it points out to "language support for java by redhat" extension

  • @mecyber6316
    @mecyber6316 3 года назад

    Can i program in VS with java ver16?

  • @harshilsavaj3355
    @harshilsavaj3355 3 года назад

    thanks, buddy I can solve my error from your amazing video...

  • @MotiviqueStudio
    @MotiviqueStudio 3 года назад +1

    Thanks for taking the time to do this. Helped me get set right up.

  • @coolguydm
    @coolguydm 4 года назад +6

    Thank you very much bro. Happy to learn new settings.

  • @allagillarbajs
    @allagillarbajs 3 года назад +1

    Great tutorial!
    But for some reason the autoimport does not work.. Which is annoying since I am not going to remember all the imports.

  • @justinjee3782
    @justinjee3782 4 года назад

    does anyone know why the terminal mentions the directories before outputting Hello World?

    • @bobbymezian9410
      @bobbymezian9410 4 года назад

      I have this problem too i’ve tried everything and can’t seem to figure it out !

  • @PeaceMatters5
    @PeaceMatters5 3 года назад

    You may be my favourite programmer, just so chill, thanks:-)

  • @lautarommb1814
    @lautarommb1814 4 года назад

    how to use the shortcut 'sout' for 'System.out.print()' ???

  • @napatz2107
    @napatz2107 4 года назад

    If I downloaded the jdk from java web I need to download also the 4:50 part?

  • @TheAnnoyingMove
    @TheAnnoyingMove 4 года назад

    command 'java.execute.workspaceCommand' not found getting this error

    • @hacked101
      @hacked101  4 года назад

      please follow the video carefully, and make sure you install the correct java extensions

    • @TheAnnoyingMove
      @TheAnnoyingMove 4 года назад

      @@hacked101 I did the same way as you did.

  • @winterender8663
    @winterender8663 3 года назад

    7:56 its not showing me any extensions

    • @hacked101
      @hacked101  3 года назад

      please follow the video carefully, or be more specific with your question

  • @artificialsoundwaves
    @artificialsoundwaves 3 года назад +2

    You're the man! Thank you!

  • @Saudavelpro
    @Saudavelpro 4 года назад

    can i use in linux this package?

    • @hacked101
      @hacked101  4 года назад

      Yes but you have to follow the installation for Linux

    • @lyricallyyours2509
      @lyricallyyours2509 4 года назад

      @@hacked101 Where's the installation for Linux??? Reply asap

  • @lisamari8147
    @lisamari8147 4 года назад +2

    Thank you very much for this. Finally I have a working Java IDE.

  • @fernandatrujillo6581
    @fernandatrujillo6581 4 года назад +2

    TEEE DEBOOO LA VIDA MIL GRACIAS!!! THANK YOU SOOOOOOOOO MUCH

    • @hacked101
      @hacked101  4 года назад +1

      You are most welcome

  • @smu48
    @smu48 3 года назад

    thank you! really helping me get started

    • @hacked101
      @hacked101  3 года назад

      No doubt, you are welcome

  • @lda2148
    @lda2148 4 года назад

    THANKS A LOT MAN YOU SAVED ME !!!!!!

  • @valencefootball9740
    @valencefootball9740 3 года назад

    Thanks it worked

  • @mohammadeskandari3298
    @mohammadeskandari3298 4 года назад +9

    480p videos in 2020. well done mate. ROFL

  • @adrianeeabrahamchakanyuka1750
    @adrianeeabrahamchakanyuka1750 3 года назад

    Thank you man!

  • @michaelborisow815
    @michaelborisow815 3 года назад

    Whoops, there's the run button. It's always hiding somewhere in these crazy IDE's.
    Thanks

  • @shanjayasinghe1778
    @shanjayasinghe1778 3 года назад

    Thanks mate! It helped me out.

  • @alamputraaf
    @alamputraaf 4 года назад

    Thank you very much Sir for making this tutorial

  • @tiktokspecial3017
    @tiktokspecial3017 3 года назад

    very very thanks bro

  • @HoanNguyen-fc8vb
    @HoanNguyen-fc8vb 4 года назад +2

    This is so far the best java & visual studio code. Thank so much!!!

    • @hacked101
      @hacked101  4 года назад

      Thanks and stay tuned

  • @googleuser-tr4pz
    @googleuser-tr4pz 4 года назад

    Thanks mate, you're a fuckin OG .
    I was really struggling with this shit, kept getting run time errors with the debugger extension.
    Glad i can finally debug my java code👍👍👍

  • @anuragdandge1156
    @anuragdandge1156 4 года назад +2

    Dhanywad🙏🙏🙏

  • @janejane9702
    @janejane9702 4 года назад +1

    Thank you very much.

  • @johannalbertoduranlarios5196
    @johannalbertoduranlarios5196 4 года назад +1

    thanks the best video I found and the only one that really served me.

  • @pearlstar1427
    @pearlstar1427 4 года назад

    Thank you very much!

  • @alexandersierra7676
    @alexandersierra7676 4 года назад

    Big thanks bro!!

  • @shantanu925
    @shantanu925 4 года назад

    Very Helpful, Thanks!!!

  • @chenyangchow8532
    @chenyangchow8532 4 года назад +1

    Nice explanation. only video a bit quite long. :D

    • @hacked101
      @hacked101  4 года назад +1

      Glad you liked it!

  • @monocoyt684
    @monocoyt684 4 года назад

    ty man

  • @Exotic69420
    @Exotic69420 3 года назад

    NExt video Sir??

    • @hacked101
      @hacked101  3 года назад

      Stay tuned, coming soon

  • @anneyemoleydjieagu496
    @anneyemoleydjieagu496 3 года назад

    Nice

  • @promisemaluleke5690
    @promisemaluleke5690 4 года назад

    Thank you somuch.

    • @hacked101
      @hacked101  4 года назад +1

      You are most welcome

  • @scratchgames1358
    @scratchgames1358 3 года назад

    thanks alooooooooooooot

  • @katyar4406
    @katyar4406 4 года назад +2

    Thank you

  • @reginald6183
    @reginald6183 3 года назад

    Video is so scuffed but helped me do what I wanted to do so thanks

  • @Jay16Mar
    @Jay16Mar 4 года назад

    Thank you!

  • @hannahtellambura5254
    @hannahtellambura5254 4 года назад

    Thank you sir for your help

  • @tranhien6526
    @tranhien6526 4 года назад +1

    2020 and 480p a real hacker lol

  • @bunnyknight2
    @bunnyknight2 3 года назад

    ali g?

  • @postalitch
    @postalitch 3 года назад

    thanks

  • @ronporter8785
    @ronporter8785 4 года назад +1

    Thank you very much for this. Finally I have a working Java IDE.

  • @allsmiles3281
    @allsmiles3281 4 года назад +1

    Thank you!.

  • @rohbarsch1201
    @rohbarsch1201 4 года назад

    Thank you so much.

    • @hacked101
      @hacked101  4 года назад

      Welcome and stay tuned