Request a free site audit

Interested in offering ad free site memberships?

Life news: I got a dog

Categories

Notes on using VS Code for development

Been seeing more folks mention VS Code so I finally gave it a try. Great experience so far.

Code (or @code as its known on Twitter) fills a space between text editors like Sublime or Atom and full-scale IDE’s like PHPStorm. It’s another of Microsoft’s latest attempts to be more developer-friendly (see also: Xamarin).

The app features five main components:

  • Explorer, your basic file nav & editor. Plus here was the most functional new folder/new file & re-organization drag and drop I’ve seen in a text editor.
  • Git, yes that’s right, a full-featured git client in the app. Easy staging and I’ve already found it’s improved how atomic my commits are. (The lazy appeal of git add . seducing me no longer.)
  • Debug, the heart of VS Code as an IDE.
  • Search, your standard multi-file power search tool.
  • Extensions, just what it says on the tin.

I wanted to share my setup in case others are interested in trying Code.

Extensions

Align – Lines up declarations within a code block.

var test = 'string';
var another = 10;
var small = 10 * 10;

Into:

var test    = 'string';
var another = 10;
var small   = 10 * 10;

ESLint – Run eslint from an .eslintrc on save or type.

Git Project Manager – Easily switch between git projects.

gitlink – Right click for Github link to file.

Instant Markdown – See side-by-side previews of markdown as you’re writing.

JestBuilt-in support for Facebook’s JS test rig.

PHPDebug – Adds PHP support to Debug tool. Note: for this extension, I had to do a little extra customization of setting my breakpoint function in the app. See screenshot to the right.

PHPCS – Inline PHP code sniffing based on whatever standards you choose.

PHPUnit – Some sugar for running PHPUnit tests. Works best with a key binding to test the current file.

Sort Lines – Good for organizing a package.json list.

VS Code Icons – Makes my editor look hella cool. Check out those sweet icons.

As for theme, I have been using Solarized Light for a while now. If you have the means (it’s free), I highly suggest you pick one up (download that ish).

A few other things I really like

  • Did I mention the Git editor?
  • Built-in terminal that supports ZSH, and I could even setup my powerline Menlo font for that cool terminal goodness. 
  • No crashes (so far).
  • Feels fast.

Did you enjoy this post?

Signup to receive a weekly email containing my new posts, curated links, and book reviews.

Thank you for subscribing.

Something went wrong.

Comments

Follow me on Twitter
Thoughts

Philly should learn from tech by embracing “OKR’s”

By setting OKR’s, leaders can provide north stars that can guide decisions at any level of the organization.

Less, More, and None

Lenfest Institute and Digital First Media?

Notes on dynamic meters

Notes on newsletters

Essays

Capturing Shawmont Station before its $1,000,000 preservation begins – the oldest extant passenger rail station in America

Originally a 18′ by 36′ stone house (Wissahickon Schist), the structure wouldn’t have stood out from the other country homes in this part of Philadelphia, at the tip of the Manayunk Reach, situated at the end of today’s Manayunk Canal Towpath.

Testing WordPress Gutenberg on a high volume news site

Water, sand, and societal change

Translation of Ben Franklin’s 1731 Apology for Printers into modern vernacular

Ben Franklin’s 1731 Apology for Printers, translated into modern vernacular.

EverQuote and patent medicine

In a thread begun October 2016, Washington Post technology director Aram Zucker-Scharff tweeted about the shady advertising practices of EverQuote, a Boston-based startup. Since then these ads have become prolific on the web (and nearly as prolific are Aram’s tweets documenting the malfeasance).

Lenfest Institute and Digital First Media?

What if Alden let another organization manage its newspaper assets as a blind trust? It would lose a great deal of flexibility in using DFM assets to leverage other companies it owns, but it would be able to wash its hands of the growing public relations crisis. Furthermore, it would give space for the strategic direction of DFM to be explored and pursued without the added baggage of hedge fund cross-percolation.

Receive a weekly email with newly posted content

  • About one email per week
  • Includes original posts, curated links, and book reviews

Thank you for subscribing.

Something went wrong.

Send this to a friend