Open ananta-dev opened 2 months ago
For me it works but does one thing that messes up everthing.. the color literals
are formatted from C'29,60,118'
to C '29,60,118'
I dont know how to fix that
@ananta-dev "editor.defaultFormatter": "ms-vscode.cpptools",
Thank you @pungggi, but when I set it like this:
"editor.defaultFormatter": "ms-vscode.cpptools",
"editor.formatOnSave": true
}
It messes several things up. Among them, the following two:
sinput group "### AJUSTES MEDIA MÓVIL ###"
input int PeriodoMA = 30;
When I format the input is moved up to the same line as the sinput:
sinput group "### AJUSTES MEDIA MÓVIL ###" input int PeriodoMA = 30;
This
glTiempoBarraApertura = D'1971.01.01 00:00';
is transformed into this:
glTiempoBarraApertura = D '1971.01.01 00:00';
Have you been able to fix the issue?
at the moment I turn off formatting on those circumstances:
// clang-format off
glTiempoBarraApertura = D'1971.01.01 00:00';
// clang-format on
I, too, have decided to turn formatting off. In my case, I am doing all MQL5 formatting manually.
It is a real pitty to have such as good extension without simple automatic formatting MQL5 working fine.
I love the MQL Tools extension, but being a software developer, I am used to prettier and other formatters. This is the only frustration I am having with MQL Tools. I cannot get the formatter to work.
Perhaps the problem is in my settings files.
This is the content of my .vscode > settings.json
And this is, after many editions, currently the content of my main VS CODE settings file (C:\Users\\AppData\Roaming\Code\User\settings.json):
I am sure I need to change something in the above files to get it to work, but I cannot find any documentation on how to do it.