D
D
Dmitry2016-12-04 23:45:23
JavaScript
Dmitry, 2016-12-04 23:45:23

Are there JavaScript editors in nature with type completion that works?

Perhaps the question will seem strange, but I had to deal with development for the web for the first time. Due to the habit of developing in languages ​​with static typing, I want a window with types, auto-completion of functions, etc. to pop up at the press of a key combination.
It seems that Google gives out about a dozen such editors. In some, a lot of graceful gifs show how cool they can complement and show types. But, when you really start to use it, it turns out that they can primitively supplement only those tags that are in the file. That is, stupid matching by tag name, or heaps of sharpenings for node.js, and I need ordinary native JS, with which nothing works.
Visual Studio Code example from. website:
intellisense_intellisense.gif
Official screenshot of WebStorm:
completion.png
How to achieve this? Or is it just for select Node.JS coders?
I added External Libraries to WebStorm, as described here . No effect...
Hello, World example:

<!doctype html>
<meta charset="utf-8">
<title>Hello World</title>

<body>
    <script src="src/pixi.js"></script>
    <script src="src/code.js"></script>

    <h1>Hi!</h1>
</body>

code.js:
//var renderer = PIXI.autoDetectRenderer(256, 256);
var renderer = PIXI.aut <==

//var stage = new PIXI.Container();
var stage = new PIXI.Con <==

//document.body.appendChild(renderer.view);

pixi.js
Here, the places indicated by arrows <== in code.js are not completed in any editor.
Tried:
  1. Visual Studio Code
  2. atom
  3. Brackets
  4. webstorm
  5. Sublime

Could it be that there is no such thing in nature? Or am I doing something wrong?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
sanex3339, 2016-12-05
@TrueBers

TypeScript + .d.ts definitions + IDE / editor with TypeScript support (the same webstorm), and there will be happiness.

D
davidnum95, 2016-12-05
@davidnum95

atom + atom-ternjs?
71763bdae668467480e84d02239afade.png

S
Sergei Nazarenko, 2016-12-05
@nazares

https://github.com/pichillilorenzo/JavaScript Comp...

R
Rafael™, 2016-12-05
@maxminimus

I use sublim2 - I also wonder why programmers are not able to make a good free code editor,
this is really amazing - there are probably millions of programmers

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question