如何为angular2插件添加代码完成,如字体真棒?

时间:2016-11-17 16:56:54

标签: angular webstorm font-awesome angular-cli

我的Angular2应用程序有以下angular-cli.json文件。我能够在我的项目中加载bootstrap和font awesome,但是我没有完成代码。

    {
  "project": {
    "version": "1.0.0-beta.19-3",
    "name": "web"
  },
  "apps": [
    {
      "root": "src",
      "outDir": "dist",
      "assets": [
        "assets",
        "favicon.ico"
      ],
      "index": "index.html",
      "main": "main.ts",
      "test": "test.ts",
      "tsconfig": "tsconfig.json",
      "prefix": "app",
      "mobile": false,
      "styles": [
        "styles.css",
        "./../node_modules/ng2-toasty/style-material.css",
        "./../node_modules/bootstrap/dist/css/bootstrap.css",
        "./../node_modules/font-awesome/css/font-awesome.css"
      ],
      "scripts": [],
      "environments": {
        "source": "environments/environment.ts",
        "dev": "environments/environment.ts",
        "prod": "environments/environment.prod.ts"
      }
    }
  ],
  "addons": ["../node_modules/font-awesome/fonts/*.+(otf|eot|svg|ttf|woff|woff2)"],
  "packages": [],
  "e2e": {
    "protractor": {
      "config": "./protractor.conf.js"
    }
  },
  "test": {
    "karma": {
      "config": "./karma.conf.js"
    }
  },
  "defaults": {
    "styleExt": "css",
    "prefixInterfaces": false,
    "inline": {
      "style": false,
      "template": false
    },
    "spec": {
      "class": false,
      "component": true,
      "directive": true,
      "module": false,
      "pipe": true,
      "service": true
    }
  }
}

如何为字体真棒图标启用代码完成?

0 个答案:

没有答案