6

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

Jason Aller
  • 3,391
  • 28
  • 37
  • 36
Abdullah Dahmash
  • 525
  • 1
  • 6
  • 12

3 Answers3

9
  • 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/

Dauren Akilbekov
  • 3,613
  • 2
  • 21
  • 30
  • When I changed the default .tern-project, auto-completion for meteor.js worked. – Abdullah Dahmash Nov 12 '14 at 21:28
  • 3
    FYI, it appears the plugin path is now `Brackets/extensions/user/ternific/libs/tern/plugin`, at least on macs (note missing `/libs/` – Chad Kruse Feb 27 '15 at 14:44
  • 2
    I have written a blog post with a description of adding Meteor autosuggest to Brackets. The tip here works. http://www.netsi.dk/wordpress/index.php/2015/06/17/my-brackets-just-got-meteor-autosuggest/ – Netsi1964 Jun 17 '15 at 09:50
  • Anybody knows where .tern-project file is located in Windows? – Ramazan Polat Jan 25 '16 at 21:47
1

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.

imslavko
  • 6,366
  • 2
  • 30
  • 42
0

Just a note for anyone trying to get the Ternific Brackets extension to work on Ubuntu. Before installing the extension make sure that Brackets is started as root (i.e. run sudo brackets in a terminal).

This will make sure the extension is installed with the proper permissions. Once installed, exit Brackets and start it as normal and you should be good to go.

apeman
  • 388
  • 4
  • 18