Debug/run standard java in Visual Studio Code IDE and OS X?

前端 未结 3 1418

Love the light-weight Visual Studio Code in OS X. Have always wanted the ability to write, debug and run standard java (NOT javascript) from VSC in OS X. Found the following

3条回答
  •  难免孤独
    2020-12-13 01:20

    There is a much easier way to run Java, no configuration needed:

    1. Install the Code Runner Extension
    2. Open your Java code file in Text Editor, then use shortcut Ctrl+Alt+N, or press F1 and then select/type Run Code, or right click the Text Editor and then click Run Code in context menu, the code will be compiled and run, and the output will be shown in the Output Window.

提交回复
热议问题