i understand that this is possible but my point was that it would make more sense if there would be a code class where you can see all code and update when needed and not zip/unzip. anyway i think it is a very good idea. Great work Erel!You can open the b4xlib archive with the 7-zip application.
Select the text file you want to edit and press Enter or F4.
Save the changes when asked.
View attachment 146382 View attachment 146383
Of course you have made a backup copy of the b4xlib file first...
And if you are using the b4xlib in a project you should refresh the list of the Library Manager.
I'm still trying to decide which I prefer to be honest.Creating a bank of code snippets is a matter of:
1. Putting all snippets (text files) in a folder named Snippets.
2. Zipping the folder and renaming it to CodeSnippets.b4xlib (or any other name).
i am not sure such thing is possible because you need to re-zip it again. maybe a IDE build-in text editor could do that and the zip process can be done in background after saving. but i really like the idea. Hard work for Erel easy work for us ?View attachment 146384
*** Another great and easy feature Erel can add... is having a small button "here" that will open the text file with notepad... that will boost code snippet editing !!!
1, will it fill now the suggestions dialog when start typing? What will happen if there would be 200 snippets? will it slow down the typing in the IDE because of the huge suggestion dialog?
I was talking for snippets folderi am not sure such thing is possible because you need to re-zip it again. maybe a IDE build-in text editor could do that and the zip process can be done in background after saving. but i really like the idea. Hard work for Erel easy work for us ?
btw. Erel any comments on this?:
You currently have two options to manage and distribute snippets:i am not sure such thing is possible because you need to re-zip it again. maybe a IDE build-in text editor could do that and the zip process can be done in background after saving. but i really like the idea. Hard work for Erel easy work for us
I've just tested it with 400 snippets and didn't see any regression., will it fill now the suggestions dialog when start typing? What will happen if there would be 200 snippets? will it slow down the typing in the IDE because of the huge suggestion dialog?
#include file="\with\full\path\xxxxx" 'also show an icon for notepad editing... beside it
I haven't tried it and therefore I don't know if the .txt extension is mandatory for the IDE to recognize the file
Can I just clarify this point. Do you mean:1. Simply put the text files inside the snippets folder.
Yes or place it in B4X folder so as to support B4A, and B4i When they also receive the updateCan I just clarify this point. Do you mean:
View attachment 146389
Like this?
As it doesn't appear to work unless I move the Snippets folder into the B4j folder (in my case).
No.Like this?
It seems so simple to me! Create a b4xlib for each language: B4A, B4J, B4i and B4X for snippets that work with each language.No.
Cross platform snippets should go into B4X\Snippets
Non-cross platform should go into B4J\Snippets
Just a helpful tip (not mine, @Sagenut's): start each snippet name with "Sni" characters.It seems so simple to me! Create a b4xlib for each language: B4A, B4J, B4i and B4X for snippets that work with each language.
I also noticed that compared to Visual Studio snippets, these are much more convenient to use!
All snippets start with "code_". So it isn't really needed.Just a helpful tip (not mine, @Sagenut's): start each snippet name with "Sni" characters.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?