gml-support / gml-support Goto Github PK
View Code? Open in Web Editor NEWGameMaker Language Support in Visual Studio Code.
Home Page: https://gmlsupport.liaronce.com
License: MIT License
GameMaker Language Support in Visual Studio Code.
Home Page: https://gmlsupport.liaronce.com
License: MIT License
Is your feature request related to a problem? Please describe.
whenever, I'm reusing a variable that was declared in the current file, it's frustrating there's intellisense / auto-complete doesn't kick in.
However function names do appear when a .
is typed. Which is great. Thanks
Describe the solution you'd like
gml-support
could check all variables in GML files in current folder & subfoldersDescribe alternatives you've considered
Right now, I manually search for variable names that I use, and retype it in the current file.
Also, GML Bundle (extension) for Sublime Text 3 does show local variables.
It's possible this is an out of box feature for ST3, and not implemented as part of GML Bundle
Additional context
Here's a GIF of it in action where new_astroid
variable was previously declared, but intellisense isn't kicking in
This is the tasks.json
template, you need create it in .vscode
folder in your workspace root.
{
"version": "2.0.0",
"tasks": [
{
"label": "Build Game",
"type": "shell",
"command": "rubber ."
}
]
}
The src/debug
folder‘s codes is still not available at this time.
Can you add Auto Formatting (Ctrg,+Shift+F)
should be the same as in javasriptish?
Thank you
Is your feature request related to a problem? Please describe.
Yes — there is no support for the begin
and end
keywords. end
is highlighted in green, begin
is not highlighted at all. While the majority of GML users use curly braces to denote blocks, begin
and end
are still valid in the language and used.
Describe the solution you'd like
Highlighting for the begin
and end
keywords.
Describe alternatives you've considered
Not sure what I would have to type here, but I suppose it's worth mentioning that I have forked the repo and added begin
and end
myself. I tested them through Lightshow and received this result:
If you want me to, I can make a PR.
Additional context
This is unrelated to the begin
and end
keywords, but I would like to request that you consider adding this syntax (ideally with the begin
and end
keywords) to github/linguist. This is the central repository that manages all syntax highlighting for GitHub code files. GML is not currently supported by it and it instead uses a grammar made for the programming language C, leading to a partial result:
Et cetera.
With your grammar:
(The difference in syntax colours is because the partial results are screenshotted from GitHub itself, whereas the ones with the syntax working correctly are from GitHub Lightshow [A grammar tester], where I have a custom stylesheet running in my browser)
Hoping to hear from you soon.
Is your feature request related to a problem? Please describe.
When using object_event_add(ind, evtype, evnumb, codestr) syntax highlighting treats everything inside codestr as a string, disabling single quote string highlighting would fix this
Describe the solution you'd like
Add a toggle in the settings (if possible) to disable single-quote string highlighting
Describe alternatives you've considered
No alternatives are available
Using GMS2 text between quotations does not seem to be highlighting.
Please feel free.
hey, just a heads up your site appears down:
https://wheresitup.com/demo/results/5e16270b51a5400da329b6b3
问题描述:无法激活"GML Support"扩展,因为他依赖于未知的"robertohuertas.vscode-icons"扩展。
VSCode版本:x64 1.35.0
OS:Ubuntu 19.04 Disco with kernel "x86_64 Linux 5.0.0-16-generic"
尝试:找到robertohuertasm的主页,并且安装了主页的vscode-icons插件(版本8.7.0),并且在vscode中设置图标主题为"VSCode Icons",重启vscode扔无法加载插件。
Last version of vscode-icons 8.7.0 by VSCode Icons Team is installed but still get the following error message :
Cannot activate the 'GML Support' extension because it depends on an unknown 'robertohuertasm.vscode-icons' extension .
in the screenshot it shows information on the function when you highlight it like what arguments the function takes. When I use it no information shows up, just the function name.
Am I missing something?
syntax does not highlight, like builtin functions/variables
What do you mean by.... "may require theme support".. do I have to install anything else?
I am on a MAC OSX, can this be the problem?
Describe the bug
Syntax highlighting isn't behaving like in Gms2.
Tried GM 8.1, GM:S, and GM:S2 syntax options and they all behave the same.
Expected behavior
var
variables should be different colors than object variables.
some gms2 functions are highlighting and others are not.
some strings are being colored... others are not.
Desktop
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.