1

I am a web-developer. The people in my office are mostly java developers. Here is my example:


Let's assume i have a java-class called foo which has a single method called bar(). When my colleague writes

foo.bb

eclipse already tells him immediately, that this won't work.

-

When i have a JavaScript object called foo which has a single method called bar() i can write

foo.bba()

and sublime won't say a word.


To fix this issue i assume that sublime would have to run something like a headless browser in the background like eclipse runs a compiler all the time.

So, is there anything like that?

DerZyklop
  • 3,672
  • 2
  • 19
  • 27
  • Consider using TypeScript. – SLaks Aug 12 '15 at 17:13
  • 1
    Sublime Text is a text editor while eclipse is an IDE. Java is a strong typed language while javascript has dynamic typing (duck typing) that makes harder to implement IDE-like functinality. I use WebStorm IDE for javascript development, for me it is the best, it has a 30 day trial but after that you have to pay for it. – sergioFC Aug 12 '15 at 18:50

2 Answers2

1

Sublime is just a text-editor, so it does not have these features out of the box.

However, there are many plugins that can produce the behavior of an IDE. SublimeCodeIntel looks like it has the features you're looking for.

Sculper
  • 756
  • 2
  • 12
  • 24
0

Disclaimer, I'm the author of tern.java

tern.java integrates ternjs inside Eclipse and provides a semantic/type checking JavaScript validator. Here a screenshot with your sample:

enter image description here

This validator uses tern-lint that you can use with other editor like Atom, Emacs. I hope that Sublime will integrate it one day. See issue 46

Angelo
  • 2,027
  • 13
  • 17