Snippet
+2
ap1991
ADbve
6 posters
Page 1 of 1
Snippet
Hello i want to share some snippet i made for csv, b3d and animated files. The snippet i made just for Visual studio code, if you want to convert to other software like sublime text,atom or notepad++ you should convert it yourself.
Before you download this snippet you should remember, this snippet NOT plug and play i mean you should make global or per-language snippet before using it.
You can click the link below to make snippet in vscode : https://code.visualstudio.com/docs/editor/userdefinedsnippets
Click this link to see snippet i made : https://github.com/adfriz/OpenbveSnippet
NOTE : snippet for making csv route are not finished yet. If you have some question do not hesitate to ask
Before you download this snippet you should remember, this snippet NOT plug and play i mean you should make global or per-language snippet before using it.
You can click the link below to make snippet in vscode : https://code.visualstudio.com/docs/editor/userdefinedsnippets
Click this link to see snippet i made : https://github.com/adfriz/OpenbveSnippet
NOTE : snippet for making csv route are not finished yet. If you have some question do not hesitate to ask
ADbve- Posts : 72
Join date : 2020-05-14
Midnight Express Ginga81 likes this post
Re: Snippet
I will apologies in advance as this may be a stupid question, but what is this and what does it do?
graymac likes this post
Re: Snippet
As we know, vscode is programming editor. When we create programs, Visual Studio is powerful input command support.
For example, when we input some of a part of variable, shows variable list automatically.
He think that may be this system is very useful, so he created the input support for OpenBVE.
For example, when we are attempt to input 'SetTextureCoordinates', at this editor, We only to input 'SetTe', vscode is show the SetTextureCoordinates automatically, and show the usage how it means and input automatically.
So we are very easy to create and very low typo.
https://code.visualstudio.com/docs/editor/userdefinedsnippets
For example, when we input some of a part of variable, shows variable list automatically.
He think that may be this system is very useful, so he created the input support for OpenBVE.
For example, when we are attempt to input 'SetTextureCoordinates', at this editor, We only to input 'SetTe', vscode is show the SetTextureCoordinates automatically, and show the usage how it means and input automatically.
So we are very easy to create and very low typo.
https://code.visualstudio.com/docs/editor/userdefinedsnippets
Midnight Express Ginga81- Posts : 154
Join date : 2016-09-25
Re: Snippet
Ah, now it makes sense! I'm not aware of anyone ever having used visual studio for add-on creation here in this board, that's why noone had a clue what this is about. Sounds very sensible actually!
Quork- Posts : 1438
Join date : 2012-05-05
Age : 33
Location : Hofheim a.T., Hessen (Hesse), European Union
Midnight Express Ginga81 likes this post
Re: Snippet
Well, I have been using Phil's openBVE script editor and I find it very sensible, too... I believe it only works for route creation, though, not for objects. Looks like this snippet does it the other way around. :-)
Re: Snippet
No - it contains all the (Michelle originated) commands to do objects as well . It doesn't do any of Chris's latest stuff ...... Yet!
I've been idly tinkering with the editor's data structure with a view to making it much simpler, about time I can hear Mr Lees thinking, based on a distributed database and a more professional design paradigm (I'm thinking MVVM here). Perhaps I should crack on and produce version 2.0 then. I need something to keep me occupied: this lockdown stuff is making visits to the off-licence rather too frequent.
Nice to know that you are still using it Dexter thanks for the compliment as well.
Regards and stay safe.
Phil
PS I've been recently learning about Visual Studio Snippets, coincidentally; it's really designed for a quick and easy insertion of frequently used, and editable, segments of code, not really intended as a macro.
I've been idly tinkering with the editor's data structure with a view to making it much simpler, about time I can hear Mr Lees thinking, based on a distributed database and a more professional design paradigm (I'm thinking MVVM here). Perhaps I should crack on and produce version 2.0 then. I need something to keep me occupied: this lockdown stuff is making visits to the off-licence rather too frequent.
Nice to know that you are still using it Dexter thanks for the compliment as well.
Regards and stay safe.
Phil
PS I've been recently learning about Visual Studio Snippets, coincidentally; it's really designed for a quick and easy insertion of frequently used, and editable, segments of code, not really intended as a macro.
phileakins- Posts : 95
Join date : 2011-08-08
Age : 77
Location : Swanage, Dorset
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|