Serhioromano / vscode-st

Extension for VS Code to support Structured Text language.
https://marketplace.visualstudio.com/items?itemName=Serhioromano.vscode-st#overview
MIT License
142 stars 28 forks source link

Suggestion, split view is VS code #36

Closed r9guy closed 2 years ago

r9guy commented 3 years ago

Is it possible to split editor to 2 sections, like Visual Studio does? This would be a step closer to separate Declaration from Definition.

slimeth commented 2 years ago

@r9guy suggestion seems actually quite relevant and would be not only cosmetically beneficial. TwinCAT seems rather sensitive on that XML code on top, between and after the declaration and definition. I realized that after I activated the auto-formatting of VS code which also formatted the XML code and afterward TwinCAT couldn't read the file properly anymore. TwinCAT VSCode

r9guy commented 2 years ago

Not only that but TwinCAT may change some UIDs in that XML portion and version control system must not be fooled by that.

On Tue, Nov 2, 2021, 6:47 PM slimeth @.***> wrote:

@r9guy https://github.com/r9guy suggestion seems actually quite relevant and would be not only cosmetically beneficial. TwinCAT seems rather sensitive on that XML code on top, between and after the declaration and definition. I realized that after I activated the auto-formatting of VS code which also formatted the XML code and afterward TwinCAT couldn't read the file properly anymore. [image: TwinCAT] https://user-images.githubusercontent.com/32170546/139867956-422f9de3-91ef-4adc-bcf1-3a6428e5a890.png [image: VSCode] https://user-images.githubusercontent.com/32170546/139868409-fe833572-59f3-444a-ba34-de2a6c88ea4c.png

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Serhioromano/vscode-st/issues/36#issuecomment-957735673, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACH55E2NU4HOQLYMHI3AA33UJ72WHANCNFSM5DEJPPJQ .

Serhioromano commented 2 years ago

This is not easy to do for TwinCat. Because it stores files as XML files. Although perhaps that would make a lot of sense is files of this extension is opened that way. Anyway right now I have no idea how I could pull this off.

r9guy commented 2 years ago

This case is closed, however I have seen the following project from Microsoft. Interactive. they also have in preview stage extension for VX2022. basically what they have done is create notebook like environment for any programming language.

Serhioromano commented 2 years ago

I've seen this feature in VSC. But I still did not see a practical application for this case.