Abdullah Dahmash
Abdullah Dahmash

Reputation: 535

Adobe Brackets editor with meteor autocomplete

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

Upvotes: 6

Views: 4441

Answers (3)

apeman
apeman

Reputation: 390

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.

Upvotes: 0

Dauren Akilbekov
Dauren Akilbekov

Reputation: 5035

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

Upvotes: 9

imslavko
imslavko

Reputation: 6676

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.

Upvotes: 1

Related Questions