How to set up clang-format in Visual Studio Code in a Vagrant environment (GeorgiaTech GIOS)

Paul Lee
4 min readFeb 5, 2021

Your code will be automatically formatted in a standardized way upon saving in visual studio code.

Source Image

If you’re like me, a CS noob, this took me several hours to figure out. There isn’t very good documentation on how to do this. Which might mean it’s so easy that no one needs a tutorial… but hopefully you find this helpful. I definitely would have appreciated a tutorial.

Introduction: Target Audience

The target audience is mainly for current OMSCS Georgia Tech students in the Graduation Introduction to Operating Systems (CS 6200 GIOS) course. The goal of this guide is to teach you how to set up your VS Code application to automatically format your C code whenever you save.

The main target audience is for Windows users who are using a vagrant file to run a virtual machine. The minimum assumption will be that VS Code is already set up and connected via SSH to the virtual machine.

The Guide

--

--