Difference between revisions of "Visual Studio Code"

46 bytes added ,  07:55, 4 February 2018
m
Formatting
imported>ChikkenChazer
(Added link to compiler package)
imported>ChikkenChazer
m (Formatting)
Line 48: Line 48:


Alternatively you can utilize VS Code's build and tasks system.
Alternatively you can utilize VS Code's build and tasks system.
====Using the 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''')


====Compile single file using default build task====
=====Compile single file using default build task=====


# First add the [[#Files|ScriptCompileDevVS.bat]] to your '''<GAME-DIRECTORY>\Data\Scripts\Source\User''' directory. The bat file contains basic compiler configuration for development.
# First add the [[#Files|ScriptCompileDevVS.bat]] to your '''<GAME-DIRECTORY>\Data\Scripts\Source\User''' directory. The bat file contains basic compiler configuration for development.
Line 68: Line 70:
You may also create a task for each step in the workflow (development, release, final etc.)
You may also create a task for each step in the workflow (development, release, final etc.)


====Compile file on CTRL+S====
=====Compile file on CTRL+S=====


If you want to compile the edited file every time you save the file (CTRL+S) you can add a hook in keybindings.json
If you want to compile the edited file every time you save the file (CTRL+S) you can add a hook in keybindings.json