1

I use Aptana Studio and AngularJS.

When I open a javascript file, which I define a controller or a service, outline section is empty.

is there a way or trick to see list of variables/functions in the outline, which are defined in that controller or service?

for example

myApp.controller('myAppController', function($scope){ 
   var abc = {}; 
   $scope.var1 = abc; 
   var funcA = function(){
      return false
   }; 
   $scope.funcB = function(){};
};

is it there a way to see abc, var1, funcA and funcB in outline?

UPDATE

enter image description here

4
  • What outline? Your question is confusing.. Commented Mar 20, 2016 at 18:01
  • Aptana uses its own plug-ins, not the Eclipse JavaScript Development Tools. Which one are you asking about? Commented Mar 20, 2016 at 18:26
  • @Dsafds Outline for functions and variable in project. Commented Mar 20, 2016 at 18:31
  • @nitind I use Aptana, but I installed JSDT too, just to try if it work on outlines. But it didnt help. Commented Mar 20, 2016 at 18:36

1 Answer 1

2

I know question is about Aptana, but as your question is about too Angular and Eclipse and Outline, I suggest you that you try AngularJS Eclipse. It is based on tern.java and provides a Tern Outline:

enter image description here

Please note that tern.java extends the JSDT Editor and in the future version JSDT will give the capability to extend Outline. So Tern Outline will be removed and replaced with standard Outline.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks. I installed eclipse mars and added angularjs-eclipse plugin. Tern Outline View works perfect.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.