Visual Studio Code
Here are suggestions for using VSC (Visual Studio Code) for developing in CFML.
What do you want to do with VSC?
- 1.Install it?
- 2.Key Extensions?
- 3.Working with the shell/terminal
- 4.Git Extensions?
Visual Studio Code Snapshot
You can approach this different ways. It is pretty nice to have the command prompt running right inside your IDE. Pressing CTRL +` will show and/or hide your terminal. This will let you run Commandbox directly inside your terminal.
File > Preferences > Settingsand search for
shell.windows. Hover over the item in
DEFAULT SETTINGSand you will see an edit pencil. Click on that and it will copy the values over to
USER SETTINGS. (NOTE: You can also set stuff up in
WORKSPACE SETTINGSfor different projects. Now set the location of commandbox on your system like we did in our system in the example below.
When adding a path, follow the rules for adding platform specific path separators.
Install Shell Launcher and reload the IDE.
Now open your user settings like is shown in the Commandbox only section just above. Add the following to your
// A list of shell configurations for Windows
If you have commandbox mapped to a path you can of course just call box like you would from any terminal and it will load right up for you. Just use any terminal in VSC that would load
boxoutside VSC and it will run the same.
You should also install a few extensions. (These extensions can also be added from the built in Extensions item.)
Additional Extensions ( of course, choose the ones you want and ignore the others )
More information to follow. (Including video guides to show how to get started that may not be as familiar with different parts.)