I recently switched to VSCode for CFML work (used ...
# cfml-general
a
I recently switched to VSCode for CFML work (used to use Sublime). Only painful thing so far has been I can't find a way to list all functions in a file with one command.... In Sublime I could do that with command+R. Is anyone aware of a way to do this in VSCode for CFML? Google not helping 😢
r
They should be in the Outline view which is a section of the Explorer pane.
a
message has been deleted
Thanks for chiming in Rodney. Is there something special I would need to configure for that to work?
e
That function exists. I have it mapped to CMD+R again but it's something like CMD+Shift+O or CMD+O or something like that.
w
i THINK the outline enumeration of functions is from the KamasamaK cfml extension
a
message has been deleted
Gonna try KamasamaK now.... cancel that, KamasamaK is what I already have installed
w
do you have any other cfml specific extensions installed as well?
a
BANG .... got it to work with the "ColdFusion Symbols" extension. You guys rock
👍🏻 1
ctrl+shift+0 (with that extensions installed)
w
weird, i don't have that one installed, but outline works for me
moving on
oh wait, was the code you were looking at cfml tag or cfscript?
r
It may only work with script style components.
g
Lurker, installed symbols and used ctrl-shift-o. Nice!
❤️ 1
r
@agentfitz Hi I don't have coldfusion symbols installed. Just ctrl+shift+0. I just noticed your image is tag based so in that case maybe so. I know with script based you don't need it.
🙌 1
l
@agentfitz there is also a vscode extension that will pull in all your sublime shortcuts for you. and that command will then work in VSCode.
👏 1
a
Heck yeah, thanks guys!
p
I've got the ColdFusion Symbols installed, but it doesn't work with either Ctrl-Shift-O or the outline viewer panel... Grrr
Don't see anything with CFCs that are script or tag based.
a
Are you on Windows or Mac @Patrick S? The ctrl+shift+0 is windows, For Mac, I would imagine it would be with command+shift+0 (by default)
p
I'm trying it out on Windows right now. It says 'The active text editor does not provide symbol information'
Oh, it finally worked! This time when I switched the tag based CFC to CFML, the Outline appeared. Might be conflicting ColdFusion extensions causing the issue.
🤘 1
r
Yeah. Make sure your CFML extension is by KamasamaK.