I am using Eclipse Oxygen.
I have web features already installed, I think some packages are missing for javascript files.
When I try to create a new javascript file, I see that there is no javascript file. How to add this feature into eclipse?
screenshot:
You just look in the wrong "folder" ("Web") to create a new JavaScript-file, the proper path is "JavaScript > JavaScript Source File".
You can also take advantage of the search in the Wizards when you type the desired search term at type filter text.
You must be using a perspective, which is not suitable for web development.
Try opening a perspective which suits your development domain. Web and Java EE perspectives for example supports JavaScript development. If such is not available in you Eclipse installation, you have to install additional tools. Which Eclipse package are you using?
In the right perspective you will have the JavaScript Source File option in the New pop-up dialog right clicking your project or an appropriate project folder (eg. WebContent).
Related
I'm developling a pure front-end based application in the webbrowser. What I'm using is Javascript (jQuery, Knockout), HTML, CSS (bootstrap). So there is no backend, there is no need for it. In that respect, I can't find a proper project template in Visual Studio (up to 2017). All I can find is either ASP.NET MVC, or Javascript Window Apps. I think those project don't match my goal. I do only want javascript, but not targeting the windows platform, but the browser. I do want a web project, but I do not require ASP.Net.
What I have so far is a blank solution, add existing project, selected the root folder. All files are there in a web project which can be launched via Visual Studio. But I can not debug javascript code this way. Or I do not know how.
So the question is, is there any matching project template I can use, or how do I debug the javascript code?
Sorry, but not just simple Javascript. You can create empty ASP.Net Web site and use it for HTML, CSS, and JavaScript programming. The Webconfig file provided by ASP.NET enables debugging in Visual Studio (or you can use F12 tools when you run the app).
You can create an empty ASP.Net Web site and use it for HTML, CSS, and JavaScript programming.
Actually VS2017 also has the new feature debug the JavaScript.
https://blogs.msdn.microsoft.com/webdev/2016/11/21/client-side-debugging-of-asp-net-projects-in-google-chrome/
I following along a Node.JS Tutorial
The instructor is using the IntelliJ IDEA to create a demo server side application with Node.JS.
The first step in the tutorial is to create a static Web Project. With the help of Static Project , I was able to accomplish the task by installing a plugin for that feature.
The next step in the tutorial is to create a new JavaScript file in that project. The instructor was able to do this by right clicking the project name -> new -> JavaScript File (show below)
However when I tried to do the same, here are the options I received (selected option is new)
Does anyone know what plugins I have install to get the JavaScript File option? I tried doing a Google Search but didn't find anything. I also took a look at Editor but I am not trying to tell Intellij to treat another file type as a JavaScript file.
JavaScript support is only available in IntelliJ IDEA Ultimate. It looks like you're running IntelliJ IDEA Community Edition, which does not include JavaScript support.
I'm new to Atom and JavaScript, Atom seems to be pretty good for web developing.
But to my best knowledge, it seems that there is no Atom package for enabling JavaScript autocomplete.
Does anyone know a package doing this or does Atom have a plan to support JavaScript autocomplete?
Since JavaScript is loosely coupled, providing a working autocomplete solution is not as easy as for statically typed languages like Java. Your best bets with Atom are the following packages:
autocomplete-plus - this is now bundled with Atom as the default autocomplete provider
ternjs - this looks pretty good, but requires some configuration.
I suggest you give these a try.
I think you should go for atom-ternjs
This is java script intelligence for atom
You need to change(Enable) setting for atom-ternjs
Use autocomplete-snippets
Display both autocomplete-snippets and function name
and many more depends on your requirements ...
If you are using modern JavaScript or TypeScript or Node then atom-typescript is good. It uses tsserver (like vscode) which gives autocomplete, go to definition, syntax checking and other ide goodies. By default it's not enabled for JavaScript. Follow the docs to enable for .js files - https://github.com/TypeStrong/atom-typescript/blob/master/docs/faq.md#i-want-to-use-atom-typescript-with-javascript-too. Configuration for tsserver is done by .jsconfig file - https://code.visualstudio.com/docs/languages/jsconfig.
install "autocomplete-plus"
install "atom-ternjs"
create or open any js file in your project
click on Packages -> Atom Ternjs -> Configure Project
below libs enable the item "browser"
scroll down and click on “Save and Restart Server”
Recommended Atom Packages
atom-ternjs:
Adds code intelligence to Atom.
https://atom.io/packages/atom-ternjs
autoclose-html-plus:
Will help you automatically close HTML tags.
https://atom.io/packages/autoclose-html-plus
emmet:
Adds code expansion to Atom.
https://atom.io/packages/emmet
csslint:
Adds CSS error checking abilities to Atom.
https://atom.io/packages/csslint
pigments:
Adds the ability to display colour in Atom code files.
https://atom.io/packages/pigments
language-ejs:
Adds EJS language support to Atom.
https://atom.io/packages/language-ejs
atom-beautify:
Helps to automatically format your code in Atom.
There is actually a topic asking a very similar thing, however the information there is either out of date (broken links, discontinued solutions) or not suitable for my needs.
I have a showcase for my graduation wherein we have the opportunity to display our work to potential employers. The interface we have to use only allows .jpg, .flv and .exe files, however my project is in HTML / CSS / JavaScript.
Is there any way I can convert my project into a .exe?
(The ways the pre-existing question's answers suggest creating an .exe are now broken links / discontinued as far as I can tell; and alternate answers suggest ways to create standalone applications which do not generate .exes, which are not fit for my purposes)
Cheers!
Most easiest way is:
1) Download Visual Studio Express Edition(Because it's free).
2) File -> New Project -> Windows Forms Application.
3) Load your current HTML into it.
4) Add WebBrowser control to your project.
5) Deploy your application(Build -> Publish).
Note:
The WebBrowser Control use IE by-default. Take a look at this alternative as well.
Welcome to 2019!
There's all kinds of different ways to accomplish this now. One popular npm package is npm pkg. There's also the popular Electron (this is what vscode was built on), and quite a few others
You Could always turn the HTML file into a HTA file and then convert it into an exe :)
https://www.vbsedit.com/
You can create a Windows app from HTML/JS.
Actually it's one of my pet projects:
Scriptonit
I've been using it for a while to create tools for myself, but just recently I decided to make it a proper freeware product. If you're not looking for something very complex and you don't need lots of frameworks & modules, this might be just what you're looking for.
You can download Scriptonit here.
You may try creating a .exe installer to you html file using Inno Setup.
You can use the setup wizard; just select the html file instead of exe when selecting the main exe file
It works somehow like an installed application, it will open in your browser but you can see in the List of Applications. (in control panel)
I downloaded sts and installed the grails/groovy plugins which is fine, but I can not use the JavaScript functionality like jumping through classes and functions in the JavaScript editor.
When I click command and on the functions name, I get a dialog saying "you have to make this a JavaScript project etc." :( :(
intellij is much better at this I think, but it takes all my cpu usage which is really sad :( so I need to switch to eclipse...
My question is: Why can't I use the JavaScript editor plugin from eclipse when my project is a "grails project"?
Eclipse's JavaScript editor is part of the Eclipse Web Tools Project (WTP). Thus, it's shipped with SpringSource Tools Suite (STS).
In new STS Grails projects as created by the Grails project creation wizard, however, the JavaScript project facet is not enabled by default.
To enable it,
right-click on the project root in the Project View,
select Properties,
in the Properties dialog, select Project Facets,
click Convert to faceted form...,
mark the JavaScript checkbox,
and click OK.
After that,
there will be a new top-level item JavaScript Resources (where you can browse the sources of ECMA and third-party JavaScript files),
and there'll be code inspection and completion in HTML <script> tags
and JavaScript source files (file extension: .js),
including for third-party libraries.