Skip to main content
Inspiring
January 12, 2025
Beantwortet

Problem with syntax in VSCode

  • January 12, 2025
  • 4 Antworten
  • 560 Ansichten

In Visual Studio Code in the jsx file on all lines where #include is used, it gives a problem and suggests using ‘;’ at the end of the line.

What is causing this to happen?

 

Beste Antwort von sttk3

Writing `//@include` instead of `#include` will prevent the error.

//@include '../Test/test-1.jsx'

main() ;

function main() {
  // do something
}

4 Antworten

sttk3Antwort
Legend
January 12, 2025

Writing `//@include` instead of `#include` will prevent the error.

//@include '../Test/test-1.jsx'

main() ;

function main() {
  // do something
}
Inspiring
January 12, 2025

Well, commenting on a line is clearly not a solution to the problem...

Legend
January 12, 2025

Have you actually tried this method? The code will be imported. Or is it not your goal to avoid errors and include the code?