I'm doing a lot of work in Javascript with Visual Studio .Net 2008. It would be nice to have some sort of plugin to do auto completion for Javascript (a bit like ctrl space and a list of options come up in Java/C# etc).
Is there such plugin/tool out there?
Thanks.
Yes.
Visual Studio 2008 Service Pack 1
I haven't tried it, but the VS2010 beta has even better Javascript Intellisense.
Related
My brother has been interested in learning Javascript and because Visual Studio has been a good program for me in C# I was wondering if it is possible to get Javascript onto Visual Studio. I have tried searching it up, but none of the results worked, is there a way? And if not, what are some good alternatives.
Yes you can do so by integrating javascript extension. There are project templates for js libraries (angular or react) in vs2019 for web applications when you start a new project.
https://learn.microsoft.com/en-us/visualstudio/javascript/javascript-in-vs-2019?view=vs-2019
But in all honesty, I think it is better to do js development in a ide like vs code, sublime or notepad++
Whether you are forced to code javascript in Visual Studio 2010, or insist on using Visual Studio 2010 instead of another IDE, I'm wondering what anyone has done to improve the javascript development experience in VS2010.
I'm asking since javascript support is lacking in Visual Studio 2010. You don't get the the kind of support you get as if you were developing Silverlight apps in C# and XAML. For example, the intellisense doesn't support javascript 1.8.5 (or even 1.6 functions i.e. JSON.Parse), it's difficult to navigate to function or object definitions (no Go To Definition), no Object Browser, Call Hierarchy, and the list can go on.
What have you done to compensate for the VS2010 features that don't exist for javascript? Also, what would be a good feature request to support javascript development; anything that VS2010 should add as an extension or a future release? Also, are there any suggestions to manage the .js code for large projects?
A few things that have helped me so far are the JScript Editor Extensions, and the Web Standards Update. Also, when working in .js files I rely on bookmarks to get back to key places, since the functions of the file aren't visible (as the would be in C#). My feature request would be to add intellisense support by javascript version, similar to how you can target .NET 2.0, 3.5, or 4.0.
There are a number of VS extensions to assist with javascript:
Visual Studio Javascript extensions feature comparison
JSEnhancements is awesome, and does what you really want: adds regions and code block collapsing.
Also see this extension: http://code.google.com/p/js-addin/
which parses your script into an object tree that can be used for navigation.
I have also used the free version of this editor: http://www.yaldex.com/JSFactory_Pro.htm
I can't recommend it, unfortunately, because it suffers from a couple critical problems (awkward UI, freaky intellisense, and not entirely stable). Which is too bad because it's a very thoughtfully designed piece of software by and large, it just fails where the rubber meets the road.
1) Install Resharper, helps a lot when building javascript heavy web apps.
2) Get FireBug for debugging.
3) Also, the JQuery.vsdocs files are sometimes helpful!
While I use vim and Notepad++ to cut code, I feel your pain, or did until I started using Firebug to debug JavaScript. While it many not be exactly fitting for your situation it's invaluable to me in developing Web based apps:
http://getfirebug.com/
I want to start learning jQuery, but there's so much you can do with it. I'm interested in using PHP as well.
I understand that Visual Studio has intellisense for Javascript, but isn't that for ASP.NET? Can you build PHP applications in Visual Studio?
There is Aptana Studio with such support as well as full featured PHP editor.
See:
Aptana Studio makes jQuery so much easier
Code Assist for jQuery
You can use Eclipse aptana studio in eclipse PDT. Plugging Aptana to eclipse. Aptana has some intellisense for jQuery but beware that it's not complete since Javascript is a dynamic language and it's difficult to get a complete one.
Buy my honest take on jQuery intellisense. If you want to be a jQuery expert dump the intellisense part. Javascript is a dynamic language and that is the reason why these editors never work as intended. I used VisualStudio recently and never got what I intended.
You can get Visual Studio to have intellisense for jQuery - see jQuery 1.4.1 Intellisense with Visual Studio on Scott Gutherie's blog. Not for VS 2008 you need to install this patch.
you can build any applications with visual studio, but visual studio is waste...
have a look at eclipse, aptana's js editor has jQuery autocompletion.
I need to find if there are any tools targeting both Visual Studio 2005 and JavaScript. I'm interested in plugins which will increase the quality of work done in VS2005 with JavaScript oriented development.
I think you'll be hard pressed to find anything specific for VS2005, since it is a dev environment and JS is a client technology. However, a couple of ideas you might want to consider:
jQuery. The recent availability of Intellisense for jQuery (although I think it is only for VS2008) helps your quality of work in the sense that you don't have to spend so much time looking back and forth at documentation, although I would say that is the best way to really become familiar with it anyway. There are several other good JS libraries out there, but (a) I don't think that was the point of your question, and (b) jQuery is the only one "semi-officially" supported in VS that I'm aware of.
Script#. Although I haven't used it, it looks interesting... basically you program in C#, and it gets translated to JS at runtime.
If you could afford it, I'll recommend upgrading to Visual Studio 2008. You can open .NET 2.0 application without converting them. It comes with much better Javascript Intellisense.
(source: scottgu.com)
One of the other JavaScript features in VS 2008 is the much-improved support for JavaScript debugging.
These features are enabled in both the free Visual Web Developer 2008 Express edition as well as in Visual Studio, and makes using JavaScript and building AJAX applications significantly easier.
If you are using jQuery in your applications, then you could install jQuery Intellisense in VS 2008.
Well, if you want something that will help you write better Javascript in Visual Studio then you can give JSLint a try. It's a plugin that will verify your Javascript code, spot errors, and help you debug it.
Beware, JSLint can hurt feelings.
I just happened to read jQuery Intellisense Updates from Microsoft and was wondering if there was any editor or eclipse plugin available which provides intellisense complete or code assist. Are there any?
I believe eclipse, with the Aptana plugin, has some JQuery support.
As mentionned here, intellisense is supported:
5. Start coding.
As you type, notice that Code Assist is now active for the jQuery objects and functions that you use.
Press ctrl+space at any time to activate Code Assist.
Why not Visual Studio/Web Developer 2008 (or did I miss something)? The express edition is free.
You can use the standalone version of Aptana Studio, it's free and much lighter than the complete Eclipse.
Aptana provide Javascript code assist, but not intellisense.
True intellisense for Javascript currently provided only by three IDs:
NetBeans (open source)
IntelliJ Idea (proprietary web development)
MS Visual Studio (proprietary, free edition exist)
So the answer - NetBeans.
But, unfortunately none of these do this job well.