Skip to content

Global settings

Lorenzo Pichilli edited this page Jan 25, 2018 · 13 revisions

You can change the global settings going to Preferences > Package Settings > JavaScript Enhancements > Settings. The default value is:

{
  "PATH": "",
  "node_js_custom_path": "node",
  "npm_custom_path": "npm",
  "yarn_custom_path": "yarn",

  "cordova_custom_path": "cordova",
  "ionicv1_custom_path": "ionic",
  "ionicv2_custom_path": "ionic",
  "angularv1_custom_path": "yo",
  "angularv2_custom_path": "ng",
  "react_custom_path": "create-react-app",
  "react_native_custom_path": "create-react-native-app",
  "express_custom_path": "express",
  "yeoman_custom_path": "yo",

  "enable_keymap": true,

  "enable_can_i_use_menu_option": true,
  "enable_unused_variables_feature": true
}

"enable_keymap": this option allow quick enabling/disabling of the default plugin keymaps.

"enable_can_i_use_menu_option": this option allows you to enable/disable the "Can I use?" feature.

"enable_unused_variables_feature": this option allows you to enable/disable the "Unused Variables" feature.

"PATH" value will be appended to the $PATH environment variable in order to allow this plugin to use/recognize some custom paths that could not be visible to it (example Fixing nodejs and npm custom path). Remember to use the same syntax for the $PATH environment variable, so you need to start with : symbol of your path! Example:

{
  // ...

  "PATH": ":/home/lorenzo/.nvm/versions/node/v9.2.0/bin",
  "node_js_custom_path": "node",
  "npm_custom_path": "npm",

  // ...
}

The other ones are your global custom paths used by your projects in absence of local custom paths per project. For angular v1 projects, this plugin uses generator-angular Yeoman generator.

Clone this wiki locally