Can anybody tell me if (and how) it is possible to use the Visual Studio Code JavaScript IntelliSense (OmniSharp i think) (or other) in own C# projects?
I have a textbox in which a user can add JS code and it would be nice to support the user with IntelliSense.
Thanks.
I recommend looking at this thread, as this seems a duplicate.
Intellisense supported TextBox in WPf
The Intellisense for Javascript projects in VS Code is powered by the typescript compiler and the tools around it, not by Omnisharp (which provides Intellisense for C# projects).
You can integrate it into your own projects through the typescript language service and server. For details you should refer to the typescript documentation: https://github.com/Microsoft/TypeScript/wiki/Architectural-Overview
Related
I have a java EE project which will need some java coding for server side, MySQL coding for DB and tomCat for Application server and and java Script for client side.
I want to know how can i create a customized project in eclipse without writhing plugin for it?
Or how can I make a blank project and add these parts separately?
My favorite IDE is eclipse because of its code completion but If above things are not possible in it, can someone just tell me how can make IntelliJ IDEA to perform like eclipse completion as like as eclipse do, for example converting syso to system.out.println() :))
(i mean is there any plugin for doing this stuff on IntelliJ or I Myself should handle these things)
IntelliJ has great auto completition features. You just type sout and then tab and Intellij autocomplets it for you to System.out.println(). I recommend you to take a look at this page:
https://www.jetbrains.com/help/idea/2016.1/auto-completing-code.html
But you should keep in mind that the IntelliJ Community Edition is not intended to support Java EE development. Therefore they released the Ultimate Edition.
Github repo says:
Implementation of Mozilla's Parser API in JavaScript. There are few examples on github and mozilla's reference link. I have seen this library being used in one of Angular 2 seed project as well.
But what is the use of this library? Can someone explain in easy words to elaborate purpose/advantage of this library.
Thanks
It is literally just a javascript shell, much like node you can use it to write JS interactively in the shell or run JS files with it.
SpiderMonkey is Mozilla's JavaScript engine written in C/C++.
Parser, is a JS API version of that, you can use it to write tools that manipulate JS files, like a linter or compiler.
Reflect is a super old version of that which, as far as I know, is not a viable option given the other tools we have today. Note that the repo was last updated in 2012, and the JS is only ES3 compliant.
I am new to creating plugins. I want to create an eclipse plugin for a new scripting language. And, its syntax is quite similar to JavaScript. So, I wish to extend existing Javascript plugin that exists in eclipse.
Please suggest how do I go about it. Mainly, I want to have editor functionality (syntax checking, auto completion and ctrl-click to go to hop across functions), no compiler/build is needed.
Also, where do I find the source code for existing JavaScript plugin.
The source of the JavaScript editor can be found in the http://download.eclipse.org/webtools/repository/kepler/ repository (assuming Eclipse Kepler). Look for the JavaScript Development Tools SDK.
You install this in to Eclipse using Help > Install New Software and the source is then available to read using Navigate > Open Type (you need to have Include all plug-ins from target in Java search selected in Preferences > Plug-in Development for this).
Eclipse editor code is very complex and it likely to be hard work to adapt it. You might find it easier to use something like Eclipse xText which is designed for developing support for new languages.
There's a Google Maps API v3 Visual Studio Intellisense Helper, which presumably works great for Visual Studio, but Aptana (based on Eclipse) uses a different JavaScript documentation format - ScriptDoc (.sdoc files). ScriptDoc is also the name of a VS utility to convert JS files with Intellisense comments into XML, just to confuse things.
I've tried adding the Intellisense files as file / global references in Aptana, but all this gives is completion for the word google and no completion or documentation in the google namespace.
Possible solutions:
Find someone who's already done this for Aptana. I've Google'd quite a bit already but couldn't find anything.
Convert the Visual Studio Intellisense Helper into a format Aptana can understand.
Scrape the API page and convert it into a format Aptana can understand.
Can't you put the JS file in the Project's references ?
I'm using Aptana and ScriptDoc is the worst decision they made and they seem to be attached to it, it's the main reason I have considered switching to Eclipse.
I've been thinking in using jsdoc-toolkit to generate .sdoc files from jsdoc notations (using some type of templates), but to use .sdoc files you must insert #id tags all over your code, and that discouraged me.
This helper is for Visual Studio. I don't think Aptana can work with vsdoc.js files
Aptana Plugin for Eclipse and jQuery code assist
I found this and I'm checking if it helps
http://code.google.com/p/closure-compiler/source/browse/#svn%2Ftrunk%2Fcontrib%2Fexterns%2Fmaps
In eclipse IDE, how can I see the javascript source code GWT has generated ?
Assuming that you are using latest GWT version with Google Plugin for eclipse you
just need to look under the war/ directory.
But unless you are compiling with "detailed" or "pretty" option you will not be able to make much of the JavaScript output because by default GWT compiler generates obfuscated code.
See http://code.google.com/eclipse/docs/gwt_compile.html for setting compiler options.