A VS Code package for working with Bethesda's Papyrus scripting language.
Features
Papyrus.
[x] Syntax Colorizer
[x] Snippets
[x] Compilation of files, folders, and projects.
Papyrus Assembly
[x] Syntax Colorizer
[ ] Snippets
Papyrus Project
[x] Syntax Colorizer
[x] Snippets
Installing
Download and install from the VS Code extension manager or side-load it into VS Code.
Open and configure Papyrus options through the VS Code settings window if necessary.
Settings
This extension contributes the following settings to the VS Code editor. Add these to your user or workspace settings.
papyrus.fo4.directory Specifies the path to Fallout 4's installation folder.
papyrus.fo4.compiler.directory Specifies the path to the Papyrus Compiler, supports relative pathing from the game directory.
papyrus.fo4.compiler.output Specifies the path for compiled scripts, supports relative pathing from the game directory.
papyrus.fo4.compiler.target Specifies a file to be compiled with the Papyrus: Compile Target command, supports relative pathing from the game directory.
papyrus.fo4.compiler.asm Specify the Papyrus Compiler assembly mode. None disables all output, Only only generates Papyrus assembly, not compiled .pex, Discard generates .pex and deletes assembly, and Keep generates and keeps both .pex and assembly.
papyrus.fo4.compiler.imports Specifies a list of import folders for the Papyrus Compiler, supports relative pathing from the game directory. Script files located in import directories listed first will overwrite scripts of the same name in other directories.
Commands
This extension contributes the following commands to the VS Code editor. Execute these through the command palette.
Papyrus: Compile (Debug): The default keyboard mapping is Ctrl+B
Papyrus: Compile (Release)
Papyrus: Compile (Release Final)
Papyrus: Compile File
Papyrus: Compile Folder
Papyrus: Compile Target: The default keyboard mapping is Ctrl+Shift+B