Categories
Programming Visual Studio

Exclude Files from the Visual Studio Code File Explorer

This is a quick note with an updated version on how to exclude files from the Visual Studio Code file explorer. I originally wrote about this in 2015 before the UI was as polished as it is now. I have also found I get asked about this a great deal due to conflicting information I […]

Categories
Visual Studio

Visual Studio Code Extension: Preview on Web Server

This is just a nod to the handy little Visual Studio Code Extension: Preview on Web Server. Now you can configure a task, or run a command, or set up a local web server yourself… but why not just install this extension and then just hit CTRL + SHIFT + L to load the web […]

Categories
Visual Studio

Tabs vs Spaces in Visual Studio Code

This isn’t actually another source of ignition for the endless flame war. Whichever side of the eternal flaming pit of tabs vs spaces you find yourself, Visual Studio Code will live by your decision. By default, it runs on “auto” mode, which means your code is like a box of chocolates… but you can fix […]

Categories
Visual Studio

Hide JavaScript Files in Visual Studio Code

I have an updated version of this post available here: Exclude Files from Visual Studio Code’s File Explorer, with updates based on some very nice UI changes that make this just a little bit easier than it was in 2015 when I wrote this. The Visual Studio Code team are definitely listening to their users. […]

Categories
Visual Studio

Universal Tasks in Visual Studio Code

This is a little trick that allows you to do pretty much whatever you like in a Visual Studio Code task. If you can put it in a batch file, you can do with VSCode. All you need is this “I’ll run a batch file for you” task (and possibly add a problem matcher so […]

Categories
Visual Studio

Custom Tasks In Visual Studio Code

I was asked how to create a custom task in Visual Studio Code. It comes with a bunch of built-in tasks that you can add to the tasks.json file – but what if you need something else… The example below enables PHPLint (in a not-very-sophisticated way) – but the technique would work for anything you […]

Categories
Visual Studio

Visual Studio Code Keyboard Shortcuts

Visual Studio Code as a whole bunch of keyboard short-cuts, but it is inevitable that you will want to customise them. Luckily, it is quite easy to do. You can create a keybindings.json to store overrides. This file must be placed in the Users folder inside the Code directory (see below for a quick way […]

Categories
Visual Studio

TypeScript With Visual Studio Code

Visual Studio Code is a new lightweight cross-platform editor that supports a whole bunch of languages, not least – TypeScript. Working in VSCode is a bit different to working in other editors and IDEs – so here is a Getting Started guide for TypeScript with Visual Studio Code. Once you have downloaded and installed VSCode, […]