Android Question Snippets

Gianni Sassanelli

Active Member
Licensed User
Longtime User
Hi,
I'm trying to create some snippets following the guide included in the booklets.

So I performed these steps.

I created the folders <<my_additional_library_folder>>\B4X\Snippets
I added two .txt files (ListScan.txt, ArrayScan.txt) to this folder.

1st issue: I can't find the Refresh context menu in the libraries tab.
2nd issue: I can't find any trace of the snippets in the IDE.

Can you help me out, please?
Thanks.

B4A 13.00 and B4A 13.40
 

Sagenut

Expert
Licensed User
Longtime User
Every txt files will be a snippet.
You will see nothing in the ide.
Start writing Code and you should see all your snippets name in the Intellisense.
Select the one you need and Tab to insert it into your code window.
 
Upvote 0

Gianni Sassanelli

Active Member
Licensed User
Longtime User
Every txt files will be a snippet.
You will see nothing in the ide.
Start writing Code and you should see all your snippets name in the Intellisense.
Select the one you need and Tab to insert it into your code window.
Hi Sagenut
i have succes only if i save mysnippets in C:\Program Files\Anywhere Software\B4A\Libraries\snippets folder
or
i have succes only if i save mysnippets in C:\B4X_Additional_Library\MySnippets_lib.b4xlib file

this work around solve my problem

thank's for your support
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
1st issue: I can't find the Refresh context menu in the libraries tab.
Right click the list.
Alternative way is restart the IDE.

2nd issue: I can't find any trace of the snippets in the IDE.
The Snippets are available when you start typing code after the Class_Globals sub
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
Did you setup the structure of additional libraries as suggested HERE ?
An AdditionalLibraries folder containing one folder for each platform and one folder B4X for b4xlib libraries.
Create the Snippets folder in this B4X folder.

To refresh the libraries: Right click in the Libraries Tab and you get a menu.:
1756020417301.png


To show the snippets: Write 'co' at the beginning of a line and the snippets will be shown, explained HERE.
 
Upvote 0
Top