Hello,
Fed up by copy/paste, I wish a Snippets manager could be added to B4X.
It would work like a Map with :
- as key a name freely entered by the user // not null
- as value a formatted piece of code
The snippets manager would be available as a panel like the Logs or File Manager.
It will display the keys ordered ascending.
The keys are name of text files listed from a settable directory without their file's extension.
Clicking right on the panel will propose to refresh the directory (as the library files).
Clicking on a key will insert the code snippet at the cursor's position (works for the code editor AND the Manifest editor).
There should be no control at the code when inserted in the Snippet manager (but of course when inserted in the Code editor).
Formatting (more wishes) :
If possible, ease the user's work by inserting a commented line containing the name of the key at the top of the inserted snippet and a commented line with a / and the name of the key at the end of the snippet.
Thanks
Fed up by copy/paste, I wish a Snippets manager could be added to B4X.
It would work like a Map with :
- as key a name freely entered by the user // not null
- as value a formatted piece of code
The snippets manager would be available as a panel like the Logs or File Manager.
It will display the keys ordered ascending.
The keys are name of text files listed from a settable directory without their file's extension.
Clicking right on the panel will propose to refresh the directory (as the library files).
Clicking on a key will insert the code snippet at the cursor's position (works for the code editor AND the Manifest editor).
There should be no control at the code when inserted in the Snippet manager (but of course when inserted in the Code editor).
Formatting (more wishes) :
If possible, ease the user's work by inserting a commented line containing the name of the key at the top of the inserted snippet and a commented line with a / and the name of the key at the end of the snippet.
Thanks
Last edited: