VSCODE - MQL5 - Syntax Highlighting - Problems
VSCODE - MQL5 - Syntax Highlighting - Problems
Loading saved threads...
Rafael Zanzoori · External communityPost link
External question — Stack Overflow Stack Exchange
Author: Rafael Zanzoori
Original post: https://stackoverflow.com/questions/76108432
License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/
Adaptation: HTML converted to plain text; contact email addresses removed.
I am trying to use VSCODE to edit my mql5 scripts.
in the attached screenshot - VSCODE prompts for 5 problems in the script.
These are false problems since the script compiles successfully.
I think that for some reason VSCODE thinks this is c++ code.
How can i eliminate these problems?
Quote
Report
PaulB · External communityPost link
External answer — Stack Overflow Stack Exchange
Author: PaulB
Original post: https://stackoverflow.com/a/76108613
License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/
Adaptation: HTML converted to plain text; contact email addresses removed.
The simple answer is, use MetaEditor which is specifically designed to edit and compile MQL4/5.
Visual Studio does not support MQL4/5. It thinks you are using c++ because that is what it is meant to be used for, not MQL4/5.
Quote
Report
Khuram · External communityPost link
External answer — Stack Overflow Stack Exchange
Author: Khuram
Original post: https://stackoverflow.com/a/78364611
License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/
Adaptation: HTML converted to plain text; contact email addresses removed.
The simplest solution is as follows:
Open VS Code
Make sure to open the
MQL4
or
MQL5
directory
Press
Ctr + Shift + P
to open up the command pallet
Select
MQL: Create configuration
This will create a .vscod directory in the MQL5 data folder and the errors will get resolved.
Note: You need to open the MQL4 or MQL5 folder in your VSCode to create an MQL5 configuration for VS Code.
Quote
Report
James · External communityPost link
External answer — Stack Overflow Stack Exchange
Author: James
Original post: https://stackoverflow.com/a/79212143
License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/
Adaptation: HTML converted to plain text; contact email addresses removed.
You have done the mql tools settings incorrectly
Instead of having the path... mql5/include"
Change to.... mql5"
Summary bringing your directory path one folder will fix the issue...
Next time follow the instructions carefully
Quote
Report
Post Reply
Quoted from Forex.com.bd-Editorial External answer — Stack Overflow Stack Exchange Author: Khuram Source score (net votes, not local likes): 0 Original post: https://stackoverflow.com/a/78364611 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. The simplest solution is as follows: Open VS Code Make sure to open the MQL4 or MQL5 directory Press Ctr + Shift + P to open up the command pallet Select MQL: Create configuration This will create a .vscod directory in the MQL5 data folder and the errors will get resolved. Note: You need to open the MQL4 or MQL5 folder in your VSCode to create an MQL5 configuration for VS Code.
Checking account access…