I really like it. A super flexible macro renderer with facilitated insertions.
A very good way to use and share collections of useful theme related snippets.
Complex snippets are possible, but even simple snippets can make life easier.
B4X:
'Loop.txt file in B4XLib: Code_Maps
'Iterates with respect to keys in a map.
For Each $varName$ As String In $mapName$.Keys
Next
'Initialize.txt file in B4XLib: Code_Lists
'Declares and initializes an empty list.
Dim $listName$ As List
$listName$.Initialize
you don't necessarily have to start by writing "Code..."
so it will be sufficient to create your text files (the snippets) in such a way that you can filter them, if they are all part of a single library.
I mean, for example, my string snippets will probably have names like: str_RemoveSpaces and by just typing "str_" I can more easily select what I want to insert.
you don't necessarily have to start by writing "Code..."
so it will be sufficient to create your text files (the snippets) in such a way that you can filter them, if they are all part of a single library.
I mean, for example, my string snippets will probably have names like: str_RemoveSpaces and by just typing "str_" I can more easily select what I want to insert.
I still think, it is members hard work on snippets support third party application, that made Erel think about it in the ide itself.
Thanks to all members who made snippets copy easier for us by their contribution. ?
[OK]...Now the bad news ... we must re-write all the threads with the snippets and change the "variables" with $variable$ !!!, and preferable at the first post attach a txt file snippet ! ?
I understand your doubts but if you prepare a Snippets folder with the text files inside, keep it like this but compress it (7-zip or similar) in your own MySnippets.b4xlib (just change the extension) it is quite convenient.
And whoever is writing this to you is a member who would prefer to continue selling his tool (with source) ?
I too would prefer a snippets manager to be integrated into the IDE, like in MS Visual Studio, but Erel evidently has reasons not to do so.
I really like the simplicity of using text files... at the end... no-one "stops" you to create a DB-snippet-editor that will automatically export/manage the text files...
You only have to prepare the snippets library files once!
I think it's a great addition to the IDE.
And i am the member who helped @LucaMs recently sell his snippet manager app.
[OK]...Now the bad news ... we must re-write all the threads with the snippets and change the "variables" with $variable$ !!!, and preferable at the first post attach a txt file snippet ! ?
Private Sub Delete$Controller$ (id As Long)
' #Version = v2
' #Desc = Delete $Controller$ in MinimaList
' #Elements = [":id"]
If id < 1 Then
HRM.ResponseError = "Invalid id value"
HRM.ResponseCode = 404
Else
Dim Index As Int = Main.$MinimaList$.IndexFromId(id)
If Index < 0 Then
HRM.ResponseError = "$Controller$ not found"
HRM.ResponseCode = 404
Else
Main.$MinimaList$.Remove(Index)
HRM.ResponseCode = 200
End If
End If
If Main.SimpleResponse Then
WebApiUtils.ReturnSimpleHttpResponse(HRM, "List", Response)
Else
WebApiUtils.ReturnHttpResponse(HRM, Response)
End If
If Main.KVS_ENABLED Then Main.WriteKVS("$MinimaList$", Main.$MinimaList$)
End Sub
The IDE will highlight the variables. Once I replace the first variable, all other variables (with the same placeholder) will be replaced.
I really like the simplicity of using text files... at the end... no-one "stops" you to create a DB-snippet-editor that will automatically export/manage the text files...
I know it comes down to personal choice. I was just saying my opinion. It's great that it has been added but personally I won't use it. (Same as I have never used the built in Debugger).