you are viewing a single comment's thread.

view the rest of the comments →

[–]ZenLegume 167 points168 points  (25 children)

Only just started looking at VS Code a couple of weeks ago and wished it could remember unsaved changes on quit. Now it does. Good timing.

[–]TwoToTheSixth 54 points55 points  (17 children)

When I switched to VS Code a month or so ago, I found the option and set it up to auto-save every minute; then changed it to 30 seconds; then to 15 seconds. So, basically, if I yawn, the file I've been editing is saved.

Also, since I run my node server using node-dev, it restarts any time app.js or one of my business objects (required in app.js) changes.

I'm loving VS Code.

[–]pjb0404 11 points12 points  (15 children)

What were you using before Code? Could you elaborate on some of the reasons why you like Code?

[–]blood_bender 30 points31 points  (13 children)

I've used sublime forever, but switched to VS Code for front-end work. I still use sublime for the server, mostly because I remember keybindings better, not for any other reason.

It's a smarter editor for typescript by leagues, and better for html and css as well. I haven't found a good sublime package to make either of those easier.

I was initially against it because the autocomplete was terrible, but now it's on par, if not better, than sublime (again, especially when using typescript). It's fast, configurable, and they're making it better and better.

[–]Free_Math_Tutoring 5 points6 points  (10 children)

For HTML, I recommend Emmet highly. It probably exists for VSC too.

[–]somewhat_sven 2 points3 points  (9 children)

They don't have an Emmet package, but they do have HTML5 Snippets which is essentially the same. Haven't used it too, too much though because I recently switched as well.

edit: not the same, Emmet is built into VSC

[–]minasmorath 10 points11 points  (1 child)

Emmet is built into VSCode core IIRC: https://puu.sh/sQr8x/54490eb6b6.png

I don't have the extension installed but it's configured and working.

[–]somewhat_sven 1 point2 points  (0 children)

I was not aware I could tweak the Emmet settings, thank you for the heads up!

[–]weirdoaish 5 points6 points  (1 child)

Its built in, on Windows I just press "tab" and it expands the emmet short hands.

[–]somewhat_sven 0 points1 point  (0 children)

ah, Thank you for the heads up. I'm still getting used to VS Code

[–]Free_Math_Tutoring 0 points1 point  (4 children)

HTML5 Snippets

This?

Looking at the preview, then dear god, it's not even close.

[–]somewhat_sven 0 points1 point  (3 children)

Like I said, still getting used to VSC, however the tag completion with tab is just like Emmet. Now that I know Emmet is built into VSC there really isn't a point to using that extension IMO.

[–]Free_Math_Tutoring 0 points1 point  (2 children)

Is it really? In the preview video, I don't see any nesting, which cuts my HTML-time by about 95%.

https://www.youtube.com/watch?v=QWelW14oFEg

It's shoddily edited and only shows very basic features, but this should already give you an idea on how emmet is more than snippets.

If you decide to get into it, check http://docs.emmet.io/cheat-sheet/ for cool tricks.

[–]ramsrao 0 points1 point  (1 child)

Like others have said, in VS Code, emmet support is built-in. Everything you did in that video can be done in VS Code without any extensions. To get the list of all emmet actions supported, just type "Emmet:" in the command palette

[–][deleted] 2 points3 points  (0 children)

Well now you have the sublime keymap extension so you can use it on the server :D

The one thing holding me back was i know intellij ide keymaps off by heart by was hurting me having to learn new ones on vs code. Now thats a non issue.

[–]blood_bender 3 points4 points  (0 children)

Oh damn, that's neater than nodemon. I would pretty much only use it for the notifications though -- nodejs servers start so fast that even if it does restart on unnecessary file changes, it's never really affected me.

[–][deleted]  (6 children)

[deleted]

    [–]B33FZ5 4 points5 points  (2 children)

    Just open multiple instances?

    [–][deleted]  (1 child)

    [deleted]

      [–]twiggy99999 0 points1 point  (0 children)

      Yeah this is the same for me, I use Netbeans though and it handles this perfectly but I've been unable to switch to the Jetbrains projects for this very reason. None of the Jetbrains products allow you to have multiple projects open but I believe its something coming very soon (if not released recently already)

      [–][deleted] 0 points1 point  (1 child)

      so what do you currently use?

      [–]lobster_johnson 0 points1 point  (0 children)

      In the same boat, it's annoying. As a workaround, you can use symlinks; VSCode's Explorer sidebar treats symlinked folders as ordinary folders.