
- #Visual studio javascript intellisense how to set up install
- #Visual studio javascript intellisense how to set up update
- #Visual studio javascript intellisense how to set up upgrade
Note: creator.d.ts and jsconfig.json file must reside in the folder you open with VS Code to make the whole language and API autocomplete work. Now you can create a new script or edit existing script and enjoy autocomplete and syntax highlight. from main menu, then select your project's root folder and click Open. Let's run VS Code, and choose File -> Open. Delete tsconfig.json if the problem occurs. This feature generates tsconfig.json file at the project root, giving the TypeScript code intellisense, but invalidating the JavaScript code intellisense.


It will generate a creator.d.ts file to the root of your project (same level as assets folder).
#Visual studio javascript intellisense how to set up update
Generate API Source In Your Projectįor syntax highlight and autocomplete you also need to generate API source to your project folder.Ĭhoose Developer -> VS Code Workflow -> Update VS Code API Source from main menu. The main function of this plug in is to inject syntax matching prompts for Cocos Creator component script usage in the VS Code editing state.
#Visual studio javascript intellisense how to set up install
You need to install this extension only once unless there's a update with Cocos Creator.Īfter the installation is successful, a green prompt VS Code extension installed to. vscode/extensions in your user home folder. This will install Cocos Creator API Extension to VS Code's extension library, usually with the path. Open your project in Cocos Creator, and choose Developer -> VS Code Workflow -> Install VS Code Extension from main menu. Windows user can run VSCodeSetup.exe to install it. Mac user can extract the software to anywhere you like, and double click Visual Studio Code.app to launch.

Go to home page of VS Code and click the download button to get the software package. Through the setting method described below, using VS Code to manage and edit project script code, you can easily achieve syntax highlighting, intelligent code prompt and other functions. Visual Studio Code (refer to as VS Code) is a cross-platform light weight development environment. So we will introduce the recommended coding environment for Cocos Creator and how to set it up. However the builtin Code Editor is only for quick edit and review of scripts and lack of many features we need for daily coding work. In quick start tutorial we showed double clicking script file to edit them in builtin Code Editor. Resource management considerations - meta files
#Visual studio javascript intellisense how to set up upgrade
V2.4 Custom Project Build Process Upgrade Guide
