Home > Article > Development Tools > vscode uses canvas to draw graphics without code prompts
In the VS Code editor, there is no code prompt when using canvas to draw graphics without installing relevant plug-ins.
You can add a line of comments to solve the problem, as follows:
/** @type {HTMLCanvasElement} */ var canvas = document.getElementById('tutorial');
Recommended related article tutorials: vscode tutorial
The above is the detailed content of vscode uses canvas to draw graphics without code prompts. For more information, please follow other related articles on the PHP Chinese website!