thx for the tip! Still, when I do that my code doesnt format on Auto Save. I gotta save manually for it to work, sigh. Any ideas? I program on C# and F#
Hi @laxedo17! I'm glad if post was useful to you. Did it work on manual save with C# and F#?
Which preference do you use for Auto Save (afterDelay, onFocusChange, onWindowChange)?
I don't use Auto Save because I like to have full control, but tested it now and it didn't work only when I choose afterDelay.
Please check this issue on GitHub: Allow autoSave and formatOnSave. There is whole discussion about it and a possible workaround which could work for you.
tested already. Works like a charm! Only thing I'd need is to configure it for all files (.cs .fs), and I found this easy way following the post you linked to! (changed the .cs or .fs whatever, to simply a .* )
okayyyy. Final test made, and I chose to use onFocusChange instead of afterDelay.
The issue is that when formatting in real time, you can go crazy and delete, move, switch to certain expressions 'cos the autoformat in real time moves your cursor or displaces words to tidy everything up.
thx for the tip! Still, when I do that my code doesnt format on Auto Save. I gotta save manually for it to work, sigh. Any ideas? I program on C# and F#
Hi @laxedo17! I'm glad if post was useful to you. Did it work on manual save with C# and F#?
Which preference do you use for Auto Save (
afterDelay
,onFocusChange
,onWindowChange
)?I don't use Auto Save because I like to have full control, but tested it now and it didn't work only when I choose afterDelay.
Please check this issue on GitHub: Allow autoSave and formatOnSave. There is whole discussion about it and a possible workaround which could work for you.
Let me know whether it works. :)
thanks!!!! I use afterDelay, also no change with others. Gotta test the workaround. Many many thanks
In order to remove C# usings from vs code solution you can follow github.com/OmniSharp/omnisharp-vsc... link also
tested already. Works like a charm! Only thing I'd need is to configure it for all files (.cs .fs), and I found this easy way following the post you linked to! (changed the .cs or .fs whatever, to simply a .* )
okayyyy. Final test made, and I chose to use onFocusChange instead of afterDelay.
The issue is that when formatting in real time, you can go crazy and delete, move, switch to certain expressions 'cos the autoformat in real time moves your cursor or displaces words to tidy everything up.
cheers m8
Cool, I'm glad you quickly found a solution for your way of working. :)