Closed msftrncs closed 5 years ago
I see. Yes snippets require improvements. May be even add some snippets. Could you try to submit a PR? I would be happy to accept your help.
Regarding automatic closing, I am not sure. I mean your are right the way you code is totally legit. But nevertheless it is personal preference. Some might like this feature. Unfortunately VS Code does not allow make a configuration option for that. I'll ask them and see what we can do.
Started a topic in Microsoft/vscode#57838. Let's see how it goes.
Like #10, I would like to suggest getting rid of the auto inserts of most all keyword pairs. Only happens when they are entered in all uppercase, but that's how I am used to typing them, even though CoDeSys will automatically upper case them for me. This would include
PROGRAM
,FUNCTION
,STRUCT
,TYPE
andACTION
at least that I have found. I think they cause more problems. Snippets are the way to go. They could use some improvement though.Snippets prefixes should be unique for each snippet, so that a user can determine a precise input for a specific snippet. For instance, 'func' is used for both
FUNCTION
andFUNCTION_BLOCK
. I know I can type 'func' and press tab and I will get the snippet forFUNCTION
, but getting toFUCNTION_BLOCK
will require navigation of the intellisense menu. It should just be 'down' one, but that's not certain. Instead a prefix of 'funcb' would be enough. The same would hold forFOR
andFOR BY
, and all theVAR
's