Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Project Template for JavaScript/VBScript?

Has anyone had luck finding a Visual Studio Project Template for JavaScript and/or VBScript? I would like to use VS as my script IDE but get frustrating with the lack of integration.

I'm hoping someone else was just as frustrated as me and already came up with a solution.

like image 740
Dscoduc Avatar asked Feb 13 '09 06:02

Dscoduc


People also ask

How do I create a JavaScript project in Visual Studio?

Add a new project file With your project open in Visual Studio, right-click on a folder or your project node in Solution Explorer (right pane), and choose Add > New Item. In the New File dialog box, under the General category, choose the file type that you want to add, such as JavaScript File, and then choose Open.

Can we write VBScript in Visual Studio?

First of all VBScript is an interpreted language and does not need to be compiled. Then, just open the file you want to debug with Visual Studio (via File --> Open --> File...) In order to start the debugger, just click "Tools / VBScript Debug".

Can you write JavaScript in Visual Studio?

You can write JavaScript or TypeScript code in Visual Studio for many application types and services.

How do I create a project template in Visual Studio?

Go to Documents\Visual Studio Version\Templates\ProjectTemplates and create a new folder to separate your template from the default templates of visual studio. You will see the newly created template as shown below. Give the name of the project and click on 'Ok' button.


3 Answers

  1. File->new->New Website (Shift-Alt-N).
  2. Select 'Empty Web site' (ignore other controls)
  3. right-click solution explorer, select 'add new item'
  4. select HTMLPage (name it index.html).
  5. right-click solution explore, select 'add new item;
  6. select jscript file.

If that's not what you're looking for, could you clarify?

like image 161
Afton Avatar answered Nov 11 '22 07:11

Afton


VisualStudio 2008 sp1 has much improved javascript support. It isn't perfect, but it does a pretty good job of formatting, syntax highlighting and intellisense. There are a few things that would be nice to have like automatic doc creation, but for the most part it works about as good as any other js "ide".

Some articles...

http://weblogs.asp.net/scottgu/archive/2007/06/21/vs-2008-javascript-intellisense.aspx http://www.codeproject.com/KB/dotnet/vs2008JSIntellisense.aspx http://blogs.ipona.com/james/archive/2009/01/14/jquery-1.3-and-visual-studio-2008-intellisense.aspx

like image 31
JeremyWeir Avatar answered Nov 11 '22 09:11

JeremyWeir


In addition to jayrdub's response, VBScript intellisense and formatting was last officially supported in Visual Studio 2005. But it was then later added back in for Visual Studio 2008 SP1 at the demand of the user community.

https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=290845 https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=292379

So as long as you're not on VS 2008 RTM, you shouldn't have much of an issue.

like image 1
William Holroyd Avatar answered Nov 11 '22 08:11

William Holroyd