-
In Flash Develop, I can create an .as file with any package path value, then when I save the file, a prompt is shown to correct my package path. In VS Code, when I save my .as file with the wrong package path, nothing changes. I known I can use snippets: "New Public Class":
But I still have to type my package path manually. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I solved the problem for myself:
though it's not perfect:
|
Beta Was this translation helpful? Give feedback.
-
Edit: 22/10/2024: The better solution: "New Public Class (Super Class)":
{
"prefix": "public.class",
"body":
[
"package ${TM_DIRECTORY/(?:.*\\\\(?:src|root|packages|topLevel\\\\\\w+)(?:\\\\)?)|(\\\\)/${1:+.}/g}",
"{",
"\tpublic class ${TM_FILENAME_BASE}",
"\t{${1}",
"\t\tpublic function ${TM_FILENAME_BASE}(${2}):void",
"\t\t{",
"\t\t\t${3}",
"\t\t}$0",
"\t}",
"}"
],
"description": "AS3: Create a new Public Class (Super Class)"
}, |
Beta Was this translation helpful? Give feedback.
Edit: 22/10/2024: The better solution: