User Tools

Site Tools


tutorial:vscode_setup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tutorial:vscode_setup [2019/07/02 21:02]
modmuss50
tutorial:vscode_setup [2020/06/29 06:44] (current)
ezraen [Generating run configurations]
Line 17: Line 17:
 ===== Generating run configurations ===== ===== Generating run configurations =====
  
-To run the game with debugging support enabled you will need to generate the run configs. This can be done by running the `vscodetask in GradleThe easiest ​way to open a terminal window is to go to _View_ ​-> _Terminal_. This will then open a terminal ​pane in the correct ​directory. Next, run `.\gradlew vscode- this will automatically generate the necessary launch.json file containing the run configs.+To run the game with debugging support enabled you will need to generate the run configs. This can be done by running the Gradle ''​vscode'' ​task. One way to open a terminal window is to go to //​View// ​-> //​Terminal//​. This will then open a Terminal ​pane in the project ​directory ​open. Next, run ''​./gradlew vscode'' ​- this will automatically generate the necessary launch.json file containing the run configs.
  
 {{:​setup:​vscode_gradle.png?​400|}} {{:​setup:​vscode_gradle.png?​400|}}
  
-Finally, to launch the game, select the debug menu item on the left. This will then build your mod and launch the game.+Finally, to launch the game, select the debug menu item on the left taskbar. This will then build your mod and launch the game.
  
 ===== Generating minecraft source ===== ===== Generating minecraft source =====
  
-If you want to browse the source ​of minecraft ​you can use the `genSourcestask from gradle, this can be done by running the following command in your terminal ​`.\gradlew genSources`.+If you want to browse the Minecraft ​source you can use the Gradle ''​genSources'' ​task. This can be done by running the following command in your terminal ​''​./gradlew genSources''​.
  
-Next you will need to fresh the java project, this can be done by pressing ​`Shift+Alt+Uwhile having the build.gradle file open.+Nextyou will need to refresh your Java project, this can be done by pressing ​''​Shift + Alt + U'' ​while having the build.gradle file open.
  
-To search for minecraft ​classes you can open the search pane with `Shift+P` and then prefix your searches with `#to search for the minecraft ​classes.+To search for Minecraft ​classes you can open the search pane with ''​Ctrl ​+ P'', ​prefix your searches with ''​#'' ​to search for the Minecraft ​classes.
  
tutorial/vscode_setup.1562101342.txt.gz · Last modified: 2019/07/02 21:02 by modmuss50