B4X libraries and project templates support custom class templates
www.b4x.com
www.b4x.com
However, up to now, code module templates (and view) are not supported.
I created a script to convert Class.bas to Class.b4x_excluded
www.b4x.com
and I wish I can do the same for Code Module.
For now, I only can use Code Snippet for adding code module from my B4X project template/library.
www.b4x.com
I think this is possible with another file extension e.g CodeModule1.b4x_excluded_module so the IDE can add the template into a project.
Isn't that trivial?
Custom class templates
Starting from B4A v8.0 it is possible to include custom class templates inside your libraries. Note that it will also be added to B4J and B4i. You can include multiple templates. There are two steps: 1. Add the template files to the project. File extension must be .b4x_excluded. For example...
[B4X] Class templates
*** This is a trick, a discovery by @aeric, really very useful *** [B4A-B4J-B4i] [This is a long post but the process is much simpler than it seems]. As you know, you can create your own project templates: https://www.b4x.com/android/forum/threads/b4x-projects-templates.119901/#content...
However, up to now, code module templates (and view) are not supported.
Only custom classes for now.
I created a script to convert Class.bas to Class.b4x_excluded
[Script] Convert Class.bas to Class.b4x_excluded
This script converts file with *.bas extension to *.b4x_excluded to be included into B4X library as class template. The following lines are not visible inside B4J Code Editor but are visible if you open the *.bas file using a text editor. B4J=true Group=Handlers ModulesStructureVersion=1...
For now, I only can use Code Snippet for adding code module from my B4X project template/library.
[Script] Convert Class.bas to Class.txt as Code Snippet
Convert Class.bas to Class.txt This script converts file with .bas extension to .txt and place it inside /Snippets folder to be included into B4X library or B4X template as code snippets. The following lines are not visible inside B4J Code Editor but are visible if you open the .bas file using...
I think this is possible with another file extension e.g CodeModule1.b4x_excluded_module so the IDE can add the template into a project.
Isn't that trivial?