[VSCode] RPG Maker Javascript Snippet for plugin developement

NEW Version 2.0.0 with minor tweaks for MZ plugin developers!

The semi-Complete snippet for the RPG Maker MV and MZ plugin development snippets for Visual Studio code

Make your necessary parameters easier as well making setting up your plugin in a snap

RMMVStart.gif

Type%20Sample.gif


Features And planned:
Complete Pixi.js snippets (planned)
Complete function set (working on it)
and more

Also Coming soon a Visualized VS Code extension that allowed you to do this but with visuals.

List of Snippets

RMMVtypelist.gif


Spoiler
Code:
# rmmvpluginsnippet List of Prefixes
All snippet always start with "!rmmv" and @type
## Content
This list all the content so you can easily start making the plugin
### Initial set
!rmmvStart - This create the body of the plugin
!rmmvStructContent - This create the initial Struct (please put this at the bottom)
## parameters
this is the list of parameters you can use in MV Plugin
### Numeric
@type float - adds a float parameters
@type limitFloat - adds a limited float parameters
@type int - adds a int parameters
@type limitint - adds a limited int parameters
### Condition
@type bool - This creates a bool parameters
### Text
@type note - This create a note parameters
@type text - This create the text parameters
### Files
@type file - This creates a generic file parameters
@type audio - this creates a audio file parameters
@type image - this creates a image file parameters
### Struct
@type struct - This create the struct parameters, if you making the struct please use !rmmvStructContent first.
### Objects
@type class - creates a class parameters parameters
@type weapon - creates a weapon class parameters
@type actor - creates a actor class parameters
@type animation - create a animation class parameters
@type skill - create a skill class parameters
@type item - create a item class parameters
@type armor - create a armor class parameters
@type enemy - create a enemy class parameters
@type troop - create a troop class parameters
@type state - create a state parameters
@type variable - create a variable object parameters
### Lists
@type ListsString - create a "string[]" parameters
@type ListFile - create a "file[]" parameters
@type ListString - create a "string[]" parameters
@type ListsText - create a "Struct<struct>[]"parameters
### Misc
@parent - This create "@parent" parameters, why it is separate, well you tell me
@text - creates a "@text" parameter, why it is separate, well you tell me
### MZ Only
List of snippets code that can only run on MZ
@target - added @target only works on MZ

Easy installation:
https://marketplace.visualstudio.com/items?itemName=MJMCreativeWorksAndIdea.rmmvpluginsnippet

Manual vsix Installation:
https://github.com/jomarcenter-mjm/RPGMakerJavascriptPluginSnippet

Instruction:
(download vsix file)
1. Open Visual Studio Code
2. follow Go to the extension tab
3. follow the "..." and click the "install from VSIX"
qDZuo2N.png

4. locate the vsix file and install

Complete Manual Installation:
https://github.com/jomarcenter-mjm/RPGMakerMVPluginSnippet

Instruction (windows):
1. Clone or download the entire repository
2. go to <your User folder>/.vscode/extension
3. copy or move the folder over to the extension folder

License: MIT License
Spoiler
Copyright 2019 MJM Creative Works and Ideas

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Thanks:
Special thanks to Yeechan Lu (orzFly) for making the list of parameters from the Plugin editor demo in the past,
without it the snippets might be incomplete or I have no idea what I am doing.
The RPG Maker Community as a whole for helping out in the development of this extension

Author note:
All of my visual studio plugins are made to help you out in making plugin quicker and efficient saving you time in the process. if you like my work, you can support me on ko-fi at

https://www.ko-fi.com/jomarcentermjm

it would really help me out in the long run.
ooh, shiny!

Pity I don't use VS 🙁
ooh, shiny!

Pity I don't use VS 🙁

can you tell my what your code editing solution? I can see if I can have a add-on created for it.
This is really nice!! 😍
I'm not a real fan of VS code, but it would be interesting to give it a try!

It would be amazing to have supports for code editor like Sublime Text 3!
I'm using Sublime
I'm using Sublime
This is really nice!! 😍
I'm not a real fan of VS code, but it would be interesting to give it a try!

It would be amazing to have supports for code editor like Sublime Text 3!

thank you for the suggestion, I have 3 Extension and plugins being works on for Plugin development and I will see if I can put sublime in the development list especially for the UI based plugin generator which is being work on VSCode.
That would be awesome! Thanks for considering 🙂
Version 1.3.0 will be released with some Major changes.
because of the amount of changes does in individual functions please test it out and I want your input before I would ship it out to everyone you can download it via this github page. please follow the manual installation instruction for this one
https://github.com/jomarcenter-mjm/RPGMakerMVPluginSnippet/releases/tag/1.3.0-test

you can also show your input at
https://github.com/jomarcenter-mjm/RPGMakerMVPluginSnippet/issues/2

once everything is good to go. the version 1.3.0 will ship out to everyone who have the extension installed.

-mjm
Oh my God, I cannot believe that I do not see this before!!!
Thanks a lot!!!
I am currently determine the best course of action for MZ. it either a new plugin or a minor tweak and update to this plugin to make MZ compatibility and include MZ specific snippets.

Edit: The plugin has been updated now it have been renamed to RPGMaker Javascript series
when checking, there seems to be a@type missing namely "@type select" with @options
but I dont know exactly how those works yet.

I have the plugin, but I keep forgetting to use it 😛
when checking, there seems to be a@type missing namely "@type select" with @options
but I dont know exactly how those works yet.

I have the plugin, but I keep forgetting to use it 😛
will take note of it
Just discovered this. Especially for someone new to plugin deving in the RPG maker series, this is really helpful. I would wish there would be some more description inside the snippets. Anyways I'm already really really happy to have this.

What I also came here for though is something else. Does the plugin add an * to the start? What would I need to do to not do that? Because if I use the plugins snippet it becomes sometimes * * @
I'm actually quite new to vscode, too. So I don't know if I should do something there to don't do that and auto correct of the plugin does.

Original thread: https://forums.rpgmakerweb.com/threads/vscode-rpg-maker-javascript-snippet-for-plugin-developement.114922/