Difference between revisions of "Visual Studio Code"
Jump to navigation
Jump to search
Added link to compiler package
imported>ChikkenChazer (Introduced usage and compilation guide) |
imported>ChikkenChazer (Added link to compiler package) |
||
Line 13: | Line 13: | ||
===Install packages=== | ===Install packages=== | ||
* Papyrus [https://marketplace.visualstudio.com/items?itemName=plankton020.papyrus] (syntax highlighting) | * Papyrus [https://marketplace.visualstudio.com/items?itemName=plankton020.papyrus] (syntax highlighting) | ||
* Papyrus Compiler [https://marketplace.visualstudio.com/items?itemName=mr-andersen.vs-papyrus-compiler] (run the Papyrus compiler from the command menu) | |||
==Usage== | ==Usage== | ||
After installing VS Code, install the Papyurs | After installing VS Code, install the Papyurs packages by browsing to the package's extension page and click install or the VS Code's extension installer (CTRL+SHIFT+X) | ||
If your project is using project files (.ppj) you may want to associate .ppj files as XML | If your project is using project files (.ppj) you may want to associate .ppj files as XML | ||
Line 44: | Line 45: | ||
===Compilation=== | ===Compilation=== | ||
If you want to compile your Papyrus scripts from within Visual Studio Code you can utilize VS Code's build and tasks system. | If you want to compile your Papyrus scripts from within Visual Studio Code you can use the Papyrus Compiler package (see packages section). The package contributes commands to VSC for running the Papyrus compiler. See the package homepage for setup. | ||
Alternatively you can utilize VS Code's build and tasks system. | |||
Note: Replace occurences of '''<GAME-DIRECTORY>''' with the path to the directory where your game is installed (Eg.: '''C:\Program Files (x86)\Steam\steamapps\common\Fallout 4''') | Note: Replace occurences of '''<GAME-DIRECTORY>''' with the path to the directory where your game is installed (Eg.: '''C:\Program Files (x86)\Steam\steamapps\common\Fallout 4''') |