MASON+9 template project for Visual Studio Code
This is a template project modified from one of Prof Jeff Schank's provided MASON project files.
- Visual Studio Code - Java Extension Pack
- Java Development Kit 17
Eclipse and some older version of Java (above 8) should still work with these codes.
-
Change the Project name of both ProjectNameHere folders.
-
Change the project name in the file: ".project"
-
Change the package name of PackageNameHere
-
Import dependencies: MASON and MASON+9. here is my modified MASON library.
-
Clone this Repository, or, Download it as ZIP. Code -> Download ZIP. Extract the folder and put it in your favorite place.
-
In file explorer, change the Project name of both ProjectNameHere
-
Open the first "ProjectNameHere" folder in Visual Studio Code.
-
modify ".project", change the project name to your project name.
-
right click on an empty spot of the VSCode file explorer -> Add Folder to Workspace. OR: File -> Add Folder to Workspace
-
Add your MASON and MASON+9 folders into the workspace, either from other sources or from my modified MASON library
-
Open one of the .java files under src/PackageNameHere.
-
Let the Java plug-in and the Java Project Manager build the project
-
Change the name of the package using the VSC Java Project Manager: open your project in it, right click on the package: Rename, and let the plugin refactor the code for you.
-
Program your Agent Based Models.
-
Save your VSCode Workspace (File -> Save Workspace as...) to a place you can find it.
- Previously Visual Studio Code for MacOS didn't have good compatibility with this template, but the code was refreshed using Prof Jeff Schank's Project on Eclipse, so it should work.