zoukankan      html  css  js  c++  java
  • vscode 支持 threejs 的智能提示

    VSCode Typings and Intellisense: Dummy Learning VS-Code 1
    Jun 20, 2016

    Updated on Jun 20 2016 for 1.0 typings and 1.x.x VS Code

    I try to bring code intellisense to visual studio code for three.js today. The process is also suitable for other packages.

    As it is said on Visual Studio Code website:

    VS Code provides IntelliSense for built-in symbols of browsers, Node.js, and virtually all other environments through the use of type definition .d.ts files. DefinitelyTyped is a repository of typings files for all major JavaScript libraries and environments.

    We will use Typings to install these files.

    Make sure you’ve installed node.js and run:

    npm install typings --global
    Go to your project directory, run:

    typings init
    There will be a typings.json file generated.

    Now search for the three.js syntax file in DefinitelyTyped:

    typings search three
    It will show all matched results. Find the one we need, the name is three

    Install three

    typings install three --save --global
    If this doesn’t work, try specify a domain for the typings, use this:
    typings install dt~three --save --global
    Now with 1.x.x VSCode, we need to generate a jsconfig.json file in the root of the project folder by clicking the light bulb button at the bottom right.

    That’s it. Now we can enjoy the syntax intellisense in vscode! For other languages and packages the process is similar.

    引用地址:http://shrekshao.github.io/2016/06/20/vscode-01/

  • 相关阅读:
    oracle数据库基础知识汇总—30天(一)
    SQL server
    mySQL 黑窗口运行命令
    MySQL
    常用网址
    常见浏览器JS引擎和内核
    nodejs
    audio标签自动播放在安卓播放正常,IOS不能自动播放
    Microsoft.Office.Interop.Excel Find 操作
    python 的os.getenv("PATH")和os.environ.get("PATH")的区别
  • 原文地址:https://www.cnblogs.com/yaolin1228/p/11125739.html
Copyright © 2011-2022 走看看