Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adobe Brackets editor with meteor autocomplete

Is there is a way to make meteor autocomplete in Adobe Brackets editor?

like image 455
Abdullah Dahmash Avatar asked Nov 09 '14 22:11

Abdullah Dahmash


2 Answers

  • Install ternific plugin in File > Extention Manager
  • Download meteor.js file from https://github.com/slava/tern-meteor to tern's folder Brackets/extensions/user/ternific/tern/plugins
  • In your Meteor project create a file .tern-project or folder with the contents similar to:
      {
        "libs": [
          "browser",
          "jquery",
          "underscore"
        ],
        "loadEagerly": ["*.js", "*/*.js", "*/*/*.js", "*/*/*/*.js"],
        "dontLoad": [".meteor"],
        "plugins": {
          "meteor": {}
        }
      }

or you can edit default .tern-project at Brackets/extensions/user/ternific/tern/

like image 125
Dauren Akilbekov Avatar answered Oct 20 '22 19:10

Dauren Akilbekov


Adobe Brackets is using TernJS for the autocomplete. There is a TernJS plugin to work with Meteor: https://github.com/slava/tern-meteor

You would need to find a way to tell brackets to use this plugin or contact the Brackets maintainers to do it for you.

like image 25
imslavko Avatar answered Oct 20 '22 19:10

imslavko