A language syntax template for working with Visual FoxPro PRG code files in Visual Studio Code.
Switch branches/tags
Nothing to show
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
foxpro Update to new format required for VS Code Dec 29, 2015
readme.md added backslash on %USERPROFILE%\.vscode\extensions lines as reported… Mar 8, 2018

readme.md

A language template for Visual FoxPro code files in Visual Studio Code

This language template brings syntax coloring and language support for Visual FoxPro PRG code files to the Visual Studio Code editor.


Installation

Installing Extensions: VS Code looks for extensions under your user folder in the .vscode/extensions folder. Depending on your platform it is located:

  • Windows %USERPROFILE%\.vscode\extensions
  • Mac $HOME/.vscode/extensions
  • Linux $HOME/.vscode/extensions

So, copy the "foxpro" folder in this source code into your user folder under .vscode/extensions. The final folder structure (on a Windows machine) will be something like:

  • C:\Users\UserName\.vscode\extensoins\foxpro

alt text

Background

To create this language template package, I started with a copy of the Visual Basic .net language pack, and began to alter the settings to suit the VFP language. Thanks to Rick Strahl for pointing me to VB as the most likely template that would be easy to convert to VFP.

VS Code Settings

You can add this "files.exclude" entry to your settings.json file to have VS Code ignore certain files in the left folder tree view. You can access this file in the File -> Preferences -> User Settings menu.

// Place your settings in this file to overwrite the default settings
{
		"files.exclude": {
		"**/.git": true,
		"**/.DS_Store": true,
		"**/*.fxp": true,
		"**/*.FXP": true,
		"**/*.bak": true,
		"**/*.BAK": true,
		"**/*.pjt": true,
		"**/*.PJT": true,
		"**/*.sct": true,
		"**/*.SCT": true,
		"**/*.vct": true,
		"**/*.VCT": true
	}
}