Adobe Brackets editor with meteor autocomplete
Asked Answered
C

3

6

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

Caterwaul answered 9/11, 2014 at 22:19 Comment(0)
S
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/

Succotash answered 11/11, 2014 at 18:27 Comment(4)
When I changed the default .tern-project, auto-completion for meteor.js worked.Caterwaul
FYI, it appears the plugin path is now Brackets/extensions/user/ternific/libs/tern/plugin, at least on macs (note missing /libs/Thorma
I have written a blog post with a description of adding Meteor autosuggest to Brackets. The tip here works. netsi.dk/wordpress/index.php/2015/06/17/…Shornick
Anybody knows where .tern-project file is located in Windows?Newfeld
F
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.

Foreleg answered 9/11, 2014 at 23:22 Comment(1)
Salava Kim are you using only Vim? I saw your vim recommendation video,Openandshut
L
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.

Lopes answered 1/7, 2015 at 9:56 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.