Skip to main content
Inspiring
January 12, 2025
Answered

Problem with syntax in VSCode

  • January 12, 2025
  • 1 reply
  • 513 views

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?

 

Correct answer sttk3

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

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

main() ;

function main() {
  // do something
}

1 reply

sttk3Correct answer
Braniac
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...

Braniac
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?