Visual Studio Code is one of my favorite editors, and it works on any platform. The MacOS install is pretty easy. That said, I’ve found a few things that can make it easier. This post has a few tips and videos to help anyone looking to install it for the first time.Read More
I usually access github from within Visual Studio Code. As such, when I start coding a new project, I often need a reminder, or a cheat sheet for how to connect Visual Studio Code to a Git repository. These notes are more for me than for anyone else, but I'm sharing them nonetheless.
- Create a directory on the local file system.
- Create a repo on Github.
- Select Clone "Clone or download" on Github, copy the link
- In Visual Studio Code, sect File -> Add Folder to Workspace -> Select the newly created directory
- Select Terminal Window
- In the window, type:
git config --global user.name <github userID> git clone <URL from github link copied earlier>
That should be all that's required. any newly created file should be available on github after stage/commit/push.
Microsoft has recently released several cross-platform tools for managing code and databases. It's possible that these tools either would not have been developed previously, or would have been made available exclusively for Windows. But as they say, the times are changing. Microsoft's CEO Satya Nadella has promised a new Microsoft, and here it is.
Visual Studio Code is a tool which represents this "new" Microsoft. It's open source, it's free, and it can be used on Windows, MacOS, and Linux OSes. Moreover, there is extensive context sensitive support of multiple programming languages - even non-MS languages. VS Code is a very modern editor offering built-in support of get, modular extensions, and it also offers "IntelliSense," a feature that "provides smart completions based on variable types, function definitions, and imported modules."
Installation of VS code on Windows is pretty straight forward, so I decided to try the process on a recent distribution of CentOS 7. Specifically, I used the CentOS OS below.
The installation Instructions for Fedora and RHEL variants can be found here: https://code.visualstudio.com/docs/setup/linux#_rhel-fedora-and-centos-based-distributions
Step 1. Install the correct keys for the MS repo
Step 2. Install VS Code. Answer "y" if there are needed dependencies.
That's it! VS Code is ready to execute. It is not recommended to run VS Code with elevated permissions, so sudo is not needed. Once running, you may discover that you need to also install Git if it isn't already installed.