is there a vscode extension for generating auto do...
# cfml-beginners
s
is there a vscode extension for generating auto documentation above components and methods that works for CF? (i thought about what channel to post this in for a bit and decided the thread would be most beneficial here)
s
I'm not sure if I am reading your question correctly. Do you want something that pops up intellisense for CFML like: https://marketplace.visualstudio.com/items?itemName=KamasamaK.vscode-cfml
s
something like this
Copy code
/**
	 * Constructor
	 *
	 * @name           The name of the executor
	 * @executor       The native executor class
	 * @debug          Add output debugging
	 * @loadAppContext Load the CFML App ...
*/
Executor function init(
		required name,
		required executor,
		boolean debug          = false,
		boolean loadAppContext = true
	){

		return this;
	}
p
Yea the CFML plugin mentioned above should do the trick for ya; just start typing /** and hit enter above your function and it should generate most of that core doc comment for you.
s
i get something, but its pretty generic, maybe another extension is causing an issue. Can you post an example of what yours outputs when you add a comment to a method?
@Patrick
p
message has been deleted
s
ok, yeah i get the same, just checking
p
Yea I could see it getting deeper but its a good starter; what further are you envisioning?
s
this is all leading up to me “possibly” forking one of the vscode plugins to my will to produce something much better than this
p
Ooo, do share when enhanced...if open source of course haha
s
yes of course, i would like it to pull the function name, add author tags, grab some of the metadata if provided, maybe auto completes some of the javadoc supported tags
@bdw429s i know you still use cfbuilder from time to time, does it do some intelligent comment creation?
it may be easier to do this via commandbox just adds a step
i could use the method/class metadata to generate the template comments within the file