Best html5/javescript/css IDE?

svdsinner

Ars Legatus Legionis
15,152
Subscriptor
(NOTE: I am in denial of the fundamental truth that web browsers are a crappy development environment to rapidly write rich applications. I dream that somehow, there could be an actually solid and useful IDE with quality intelisense, etc. that would make rapidly writing HTML5/javascript/css a simple chore with near-real-time WYSIWYG display that can transition easily from graphical drag/move/adjust edits (how does this margin size look, what if I change that color, why don't I make that slightly bigger, etc.) to text-based code editing, and be a joy in both scenarios to use. I understand this is very unrealistic and nothing out there comes close. In fact, so many IDEs for HTML5/javascript/css suck badly and make coding LESS pleasant than coding in a plain text editor.)

Simple question: You are writing a small HTML5/javascript/css app in a browser. You want to quickly mock-up/POC the basic functionality (RAD style coding) before you integrate it into your big app. You want the lowest write-run-examine-tweak-repeat cycle overhead possible so that you can iterate quickly. You are an experienced coder, but aren't too proud to use IDE tools to speed things up. Assume it will require an equal amount of graphical prettiness and javascript code logic to make your mockup work. What IDE would you choose for this task? What IDE features (syntax highlighting, intelisence, code snippets, etc.) would you make sure to have? What IDE features would you wish existed that your tool wouldn't have?

For this thread, the "just use a text editor" answer won't be allowed. I'm trying to identify things that are actually better than that baseline solution.
 

Mile Zero

Ars Praetorian
578
Subscriptor++
The Chrome dev tools are actually a decent (but not great) editor now, with the addition of workspaces for opening and live editing of local files. They can also save CSS changes directly from the Elements panel, including CSS files that were generated via preprocessor if source maps are included. It's pretty sweet. I teach JavaScript at a local community college, and I'm considering having a lot of them use the dev tools as the editor just to force them to also learn about the debugger and the console.

I have a pretty low bar for editors, to be honest. My main goal is to not touch the mouse, and I'm pretty hooked on multiple cursors and regular expression find/replace, which is weirdly hard to find in a free editor. That said [SELF PROMOTION FOLLOWS], I wrote an editor as a Chrome App that has both of those things, plus a lot more: https://chrome.google.com/webstore/detail/fljalecfjciodhpcledpamjachpmelml [SELF PROMOTION COMPLETED]
 

svdsinner

Ars Legatus Legionis
15,152
Subscriptor
So, I use Chrome web tools, but might need to RTFM a bit to get good at them. However, Sublime Text is a new to me. Before I start a 30-trial to see if I want to buy it, can any of you help me know what aspects of the HTML5/javascript/css workflow does it improve? Specifically does it have anything to shorten the workflow distance between Point A (I just tweaked the code) and Point B (I can now see what that change did in a real browser to see if my tweak worked)? Coming from Windows fat clients where that distance is magically "If it doesn't show in the designer, just hit F5", I despise the non-sense of saving files, switching focus to browser, refreshing browsers, clearing cache, etc. that involves multiple clicks and requires actual thought to remember which of the steps have to be done to reflect which changes. (Do I need to re-build the app? Do I just need to save the files? Does the file I changed always get refreshed or do I have to eliminate the cached copy to get it to load?)

IMHO, development workflow quality can be rated according to how much of your time is spent actually writing/changing/testing code vs. time spent not doing one of those 3 core activities. I am always looking for ways to spend less time on the mundane stuff like the period of time when you finish writing/changing a bit of code and examining a test of that code. Getting into "the zone" is almost impossible once too much time is wasted on the mundane.
 

Mile Zero

Ars Praetorian
578
Subscriptor++
[url=http:/civis/viewtopic.php?p=25914579#p25914579:22d0gvxe said:
svdsinner[/url]":22d0gvxe]So, I use Chrome web tools, but might need to RTFM a bit to get good at them. However, Sublime Text is a new to me. Before I start a 30-trial to see if I want to buy it, can any of you help me know what aspects of the HTML5/javascript/css workflow does it improve? Specifically does it have anything to shorten the workflow distance between Point A (I just tweaked the code) and Point B (I can now see what that change did in a real browser to see if my tweak worked)? Coming from Windows fat clients where that distance is magically "If it doesn't show in the designer, just hit F5", I despise the non-sense of saving files, switching focus to browser, refreshing browsers, clearing cache, etc. that involves multiple clicks and requires actual thought to remember which of the steps have to be done to reflect which changes. (Do I need to re-build the app? Do I just need to save the files? Does the file I changed always get refreshed or do I have to eliminate the cached copy to get it to load?)

You can get plugins to do a lot of stuff from Sublime, including autocomplete and JSHint. It also has a decent build system and a bunch of processing plugins, but to be honest most people are probably using Grunt to power their watch/build cycle, which means it shouldn't matter what editor you're using. Sublime is also cross-platform and runs as a portable app--I have a copy that I carry with me on my Kindle so I can work anywhere.

Other than that, it's just a really good editor. It's got multiple cursors, the command palette means you never need to touch the mouse, it does full regex search replace, it's easily customized. Frankly, there's a 30 day free trial, you might as well just install it and see if you like it.

I can work entirely in the Chrome dev tools, but there are parts of that experience that are not where I want, particularly where the keyboard shortcuts are concerned. Sublime doesn't have the same ease for live editing, but it's a much better text editor than the embedded CodeMirror panel. It is also more likely to have support for Crazy Thing X when you need it (such as Perforce integration, in my case).
 
[url=http:/civis/viewtopic.php?p=25914579#p25914579:3sy7q9xa said:
svdsinner[/url]":3sy7q9xa]So, I use Chrome web tools, but might need to RTFM a bit to get good at them.

The devtools are extremely capable for most things, layout debugging is the best anywhere IMO. But general purpose JS debugging can be a bit more clumsy, you really feel the lack of a strong static typing that enables VS to be so awesome. But that more a fundamental language issue (maybe chrome could use all that live execution metadata to do something more useful.)

This slideshow has a good overview of the many features in devtools.

[url=http:/civis/viewtopic.php?p=25914579#p25914579:3sy7q9xa said:
svdsinner[/url]":3sy7q9xa]Coming from Windows fat clients where that distance is magically "If it doesn't show in the designer, just hit F5", I despise the non-sense of saving files, switching focus to browser, refreshing browsers, clearing cache, etc. that involves multiple clicks and requires actual thought to remember which of the steps have to be done to reflect which changes. (Do I need to re-build the app? Do I just need to save the files? Does the file I changed always get refreshed or do I have to eliminate the cached copy to get it to load?)

Web is certainly a very different environment from desktop, but in the end, it's no different from most other development (messy, and amazing anything works at all.) Perhaps if you mention something specific you want solved that would help.
 

Malyk

Ars Tribunus Angusticlavius
8,558
Subscriptor
Like everyone here it's just sublime and chrome web inspector. Does the job fine.

Alt-tab to sublime, make a change, cmd-s, alt-tab to chrome, cmd-r...rinse and repeat.

Coming from an MS toolchain working outside an IDE can be an adjustment, but honestly I'd rather just type in a nice text editor. Autocomplete is the only thing i really "miss", but sublime has autocomplete in files once you've typed something the first time so it's generally good enough.

Mike
 
[url=http:/civis/viewtopic.php?p=25966347#p25966347:1iiw23ym said:
Malyk[/url]":1iiw23ym]Like everyone here it's just sublime and chrome web inspector. Does the job fine.

Alt-tab to sublime, make a change, cmd-s, alt-tab to chrome, cmd-r...rinse and repeat.

Coming from an MS toolchain working outside an IDE can be an adjustment, but honestly I'd rather just type in a nice text editor. Autocomplete is the only thing i really "miss", but sublime has autocomplete in files once you've typed something the first time so it's generally good enough.

Mike

Not to mention that autocomplete is really hard to implement correctly in javascript anyway; most editors that I've used that try to do it fail miserably. Sublime's approach of remembering strings is much better for web development.
 

zeromusx

Smack-Fu Master, in training
63
I'm not using SublimeText2 though everybody says it's so good. Might check it out in the future though.

Very fond of Coda 2 and its great companion app Diet Coda.
Lots of functions like snippets (clips), version control.
Works great for HTML5 & CSS3 since it has built in reference books, no more need for Dash now :p

My school recommends PhpStorm for our assignments but it's wortheless..
 

ChrisKon

Seniorius Lurkius
1
Concerning your requirements, I would suggest you to try sourceLair for your html projects, for the following reasons:

1. public URL to showcase your work
2. real-time preview
3. package management with Bower
4. SASS, SCSS and LESS preprocessors for CSS, as well as CoffeeScript and TypeScript for JavaScript

I cannot write something about "iterating quickly" as you have to test it personally.
 

aart3k

Seniorius Lurkius
2
I'm a webdeveloper since 2003, pro since 2007 and I've tried like million of various editors. In 2010 I've settled for PhpStorm (WebStorm is cheaper version without PHP support)

Because of:

- The best code completition for web ever made, working in HTML (classes, JS, CSS, LESS, PHP and more
- Good tools for code building and managing stuff - integrated Git and SVN, (S)FTP, send to server on save, built-in console and many more
- If you learn hotkeys it's blazing fast to do stuff
- Pomodoro plugin

As for debugging it integrates with Chrome debugger, with live edit features, which I don't personally use.
I just stick to Chrome Developer Tools when it comes to debugging.

Give it a shot, it's free for 30 days trial.
 
[url=http:/civis/viewtopic.php?p=26285339#p26285339:38izg3sg said:
Bastard[/url]":38izg3sg]I just found this for Visual Studio: http://visualstudiogallery.msdn.microso ... 451ea3bea6

Installed it and it pretty much rocks if you do any CSS or HTML and Javascript coding and want to use VS.

Maybe I'm not using it correctly, but I find VS still does a bad job of auto indenting code (especially less files gets all fucked up, to a lesser degree razor views). And doing all the work to get intellisense in VS is just not worth it (IMO).

I still prefer a plain text editor. Also, there's a 2013 release!
 
[url=http:/civis/viewtopic.php?p=26288021#p26288021:3sxf3ajd said:
SvendTofte[/url]":3sxf3ajd]
[url=http:/civis/viewtopic.php?p=26285339#p26285339:3sxf3ajd said:
Bastard[/url]":3sxf3ajd]I just found this for Visual Studio: http://visualstudiogallery.msdn.microso ... 451ea3bea6

Installed it and it pretty much rocks if you do any CSS or HTML and Javascript coding and want to use VS.

Maybe I'm not using it correctly, but I find VS still does a bad job of auto indenting code (especially less files gets all fucked up, to a lesser degree razor views). And doing all the work to get intellisense in VS is just not worth it (IMO).

I still prefer a plain text editor. Also, there's a 2013 release!

Auto indenting... No clue for my needs it pretty much works. Maybe i am not using it enough.

The extensions make it easy to spot the pictures you use in a CSS the colours and almost everything else.
 

tinyMan

Ars Tribunus Angusticlavius
6,149
Subscriptor++
I view it as a more usable (to me) emacs. A Text Operating System which can be expanded, tweaked and modified to handle just about any use case when it comes to working with text.

I like Sublimes minimalist "project" management, which suits me for doing all sorts of front-end development work. I wouldn't go so far as to call it an IDE, certainly not out of the box, but once you have the right set of plugins, configure it to suit your workflow and learn its ins-and-outs, it can certainly be the primary development tool for many use cases. From project creation, code editing, building and testing, it can all be done from inside the tool with a keystroke.
 

Lord Pachelbel

Ars Praefectus
5,499
Subscriptor++
After installing SublimeLinter and some plugins (csslint, jshint, phplint, htmltidy) I started really liking it as an editor. I miss that kind of stuff from IDEs like Visual Studio which I haven't needed to use for years.

And the intimidation I mentioned - part of it is getting used to a different color scheme than what I'm used to, which I realize I can change. I've experimented with several of the themes.
 

stackptr

Seniorius Lurkius
8
I had the pleasure of investigating improvements to the development environment of my division. The stack is centered on development of front-end JS applications and backend CoffeeScript modules, using SCSS for styling. The goal is to make onboarding new members easy, as the team is rapidly growing, and to enforce coding standards as painlessly as possible.

Sublime Text is my IDE of choice. SublimeLinter is used to automatically lint all the file formats used, Emmet to take the tedium out of writing raw markup, and Sublime SFTP to ease remote editing.

Grunt is used as a taskrunner to automatically clean, compile, and minimize files as needed for each project. Using LiveReload on Chrome, the sites are automatically refreshed as they are being built.

The configuration for Sublime, Grunt, and linting tools are synchronized through the Git repo. As a result, a new member can simply download Sublime and the plugins, pull down an existing project, set Grunt to watch the directory and get right to work writing code which will be checked automatically.

I'm currently investigating the use of WebStorm for larger backend projects, since it apparently makes debugging a bit easier, but so far I've seen no compelling reason to make a switch.
 
[url=http:/civis/viewtopic.php?p=26431267#p26431267:kc5wykca said:
Malyk[/url]":kc5wykca]That sounds like a good setup...for you.

But you'd never get me to use a setup like that. I'm using the editor of my choice fuck you very much! ;)

Don't force feed your developers a set of tools. They'll resent you for it and leave...especially if they are good.

Providing a sensible default workspace isn't the same thing as forcing everyone to use the same tools.
 

Malyk

Ars Tribunus Angusticlavius
8,558
Subscriptor
[url=http:/civis/viewtopic.php?p=26435921#p26435921:oeywpl55 said:
Ravensroke[/url]":eek:eywpl55]
[url=http:/civis/viewtopic.php?p=26431267#p26431267:oeywpl55 said:
Malyk[/url]":eek:eywpl55]That sounds like a good setup...for you.

But you'd never get me to use a setup like that. I'm using the editor of my choice fuck you very much! ;)

Don't force feed your developers a set of tools. They'll resent you for it and leave...especially if they are good.

Providing a sensible default workspace isn't the same thing as forcing everyone to use the same tools.

Absolutely. In fact, I think it's a good idea. But for the love of everything don't make it a requirement. Your best people have their own way of doing things that works for them. The rest won't care, but you immediately put the best people on their heels if you try to make them do it.
 

hongooi

Ars Tribunus Militum
2,244
Subscriptor
Also, bonus question:
What browser/tool do you prefer to debug this page and observe all the various javascript happenings on that page to make sure it is actually doing what you expect without writing a bunch of low-tech
Code:
alert("Made it here.");
debugging output lines?

printf or die, motherfucker


Also, this question is ancient, but Visual Studio Code seems to be the new hotness.
 

Apteris

Ars Tribunus Angusticlavius
9,591
Subscriptor
I probably oughtn't contribute to resurrected threads, but I can't resist...
You want the lowest write-run-examine-tweak-repeat cycle overhead possible so that you can iterate quickly.
Give Light Table a shot. Development seems to have stagnated a while ago, but if the basics ever worked they ought to still be working. Light Table advertises instant feedback, in that you see your changes on the right-hand side of your screen instantly.

You are an experienced coder, but aren't too proud to use IDE tools to speed things up.
It has nothing to do with pride. IDEs are, IMHO, essential to responsible, modern development.
 

Jehos

Ars Legatus Legionis
55,560
Visual Studio Professional. It'll hit Javascript breakpoints. Add in dual-monitor so your code is on one side and the browser is on the other and you're ready to rock.

You are an experienced coder, but aren't too proud to use IDE tools to speed things up.
It has nothing to do with pride. IDEs are, IMHO, essential to responsible, modern development.
This. It's like saying you're a professional builder but aren't too proud to use power tools.
 

Lt_Storm

Ars Tribunus Angusticlavius
21,346
Subscriptor++
[Zombie thread! It's weird reading my posts from almost five years ago.]

These days I use PhpStorm, and I highly recommend it and its sibling WebStorm, which is the same thing minus the PHP stuff.

Jetbrains make glorious tools. I use Intellij with the appropriate plugins or Visual Studio Code and Chrome depending on the task.
 
So, I use Chrome web tools, but might need to RTFM a bit to get good at them. However, Sublime Text is a new to me. Before I start a 30-trial to see if I want to buy it
Just an FYI, the 30 day "trial" is just a suggestion. You can run it indefinitely without buying it, though it will nag you every 20 or so times you hit CTRL+S. That said, I did end up ponying up for a license, since I use it to make money at my day job, plus it's licensed per user, not per device. That means I can install it everywhere, both at work and home. :) It's VERY expensive ($80 USD) for "just" a text editor, but it is a lot more than "just" a text editor, and if it's something that makes me more money more efficiently, I don't have a problem paying top dollar. Try writing static HTML code with Emmet; your mind will be blown. :D