newdatasystems / vscode-foxpro Goto Github PK
View Code? Open in Web Editor NEWVSCode Extension for the Microsoft Visual Foxpro programming language
License: MIT License
VSCode Extension for the Microsoft Visual Foxpro programming language
License: MIT License
Please explain how to use the "internal snippets"???
I think it would be cool if you added a screenshot of VFP code in VS Code on the home page of this extension in the Marketplace. It would look really cool!
Here is the code you can paste into your readme,md file to display the screenshot from my original repo:
![alt text](http://content.screencast.com/users/MattSlay/folders/Snagit/media/354acc1a-ff2b-4514-84d0-3c47b2d7e250/04.01.2019-14.14.png "screenshot")
This is more of a sugestion/improvement.
Use Outline to list file Class and Method as well as Other Functions and Procedures on the File.
Hello Ted,
How to implement a beautify feature in vscode for prg files?
Currently, my VFP Project hook class is beautifying the prg in VFP before opening it in vscode.
Meanwhile, if you can put the following in foxpro-configuration.json, then it would be of some help - and if you feel that I have missed any keywords, then pls add them too.
`
"indentationRules": {
"increaseIndentPattern": "^\s*(DEFINE|FUNCTION|PROCEDURE|FOR|IF|ELSE|TEXT|SCAN|TRY|CATCH|FINALLY|DO CASE|CASE|OTHERWISE|DO WHILE)",
"decreaseIndentPattern": "^\s"
}
`
Attention everyone - be sure to use the green INSTALL button at the top of the Visual Studio Code Marketplace page, rather than the "download" link on the right side bar of that page. The INSTALL button will launch VS Code for you and to the install, whereas the download link downloads a VSIX file, but will give an error if you click on the VSIX to install it.
Follow these instructions to install the VSIX from the VS Code IDE:
https://code.visualstudio.com/docs/editor/extension-gallery#_install-from-a-vsix
Here is the error you will get with if you just click on the downloaded VSIX file to launch it from Windows Explorer:
Hi,
with this code:
&& xxx
** ccccc
wait window "str('', '"')"
wait window 'str("", "'")'
for i=1 to 10
msg("ola")
next
you can see that it breaks coloring because of ' inside "
you can fix this with these changes in FoxPro.plist:
<dict>
<key>match</key>
<string>(")(.*)(")</string>
<key>name</key>
<string>string.foxpro</string>
</dict>
<dict>
<key>match</key>
<string>(')(.*)(')</string>
<key>name</key>
<string>string.foxpro</string>
</dict>
<dict>
<key>match</key>
<string>(\[)(.*)(\])</string>
<key>name</key>
<string>string.foxpro</string>
</dict>
<!-- <dict>
<key>begin</key>
<string>(")</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.begin.foxpro</string>
</dict>
</dict>
<key>end</key>
<string>(")</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.end.foxpro</string>
</dict>
</dict>
<key>name</key>
<string>string.quoted.double.foxpro</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>("")</string>
<key>name</key>
<string>constant.character.escape.apostrophe.foxpro</string>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>(')</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.begin.foxpro</string>
</dict>
</dict>
<key>end</key>
<string>(')</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.end.foxpro</string>
</dict>
</dict>
<key>name</key>
<string>string.quoted.double.foxpro</string>
</dict> -->
Hi,
When calling some DLL, we need to declare that function fist like:
DECLARE STRING MyLogin IN MyLIB.DLL String, Integer
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.