Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

javascript/node.js intellisense in visual studio 2013/resharper problematic

Visual Studio 2013 with:

  • Resharper 8.2
  • Node.js tools
  • Web essentials

From what I gather from the node.js tools site, I should be getting intellisense.

However when editing javascript in a node.js project I get strange intellisense which suggests all sort of irrelevant stuff. It doesn't have any useful intellisense for node, and does things like autocompletes require as required which is extremely annoying as I have to hit escape to stop it from changing it, I sometimes miss it and this causes a runtime error.

It gives me intellisense for my own code within the project, but very little else.

I read this, with some hope:

https://nodejstools.codeplex.com/workitem/562

However, if I disable Resharper intellisense for js files, rather than it deferring to Visual Studio/node.js tools I get no intellisense at all. I'm doing this at the moment because nothing is better than having the require -> required issue.

Have been unable to find anything useful in Google or on StackOverflow.

like image 396
nrkn Avatar asked Apr 23 '14 03:04

nrkn


People also ask

What's new in JavaScript Intellisense 2017?

Starting in Visual Studio 2017, JavaScript IntelliSense displays a lot more information on parameter and member lists. This new information is provided by the TypeScript language service, which uses static analysis behind the scenes to better understand your code. TypeScript uses several sources to build up this information:

What is Java IntelliSense in Visual Studio?

JavaScript IntelliSense. Visual Studio provides a powerful JavaScript editing experience right out of the box. Powered by a TypeScript based language service, Visual Studio delivers richer IntelliSense, support for modern JavaScript features, and improved productivity features such as Go to Definition, refactoring, and more.

What's new in the JavaScript language service in Visual Studio 2017?

What's new in the JavaScript language service in Visual Studio 2017. Starting in Visual Studio 2017, JavaScript IntelliSense displays a lot more information on parameter and member lists. This new information is provided by the TypeScript language service, which uses static analysis behind the scenes to better understand your code.

How to trigger IntelliSense in the editor?

Pressing Tab or Enter will insert the selected member. You can trigger IntelliSense in any editor window by typing Ctrl+Space or by typing a trigger character (such as the dot character (.) in JavaScript).


1 Answers

If you disable ReSharper's code completion, you also need to make sure Visual Studio's is enabled. Go to Tools -> Options -> Text Editor -> Node.js and look for the "Statement completion" check boxes.

like image 77
citizenmatt Avatar answered Oct 26 '22 23:10

citizenmatt