More VS Code Tips
CODE Magazine|September - October 2024
In my previous article in CODE Magazine https://www.codemag.com/Article/240803 1/VS-Code-Tips), shared some of my favorite tips when working with VS Code. As wrote the article, realized that was just brain dumping tidbits I've gathered over many years of using VS Code. The list seemed endless. But what about some larger chunks of tips? Things that every developer
Sahil Malilk
More VS Code Tips

uses and are built into VS Code that can supercharge your development? I thought it might be nice to take a logical break and come back with those larger chunks of items.

Git

These days, if you’re a developer, you most likely use Git. It has sort of become the de facto source control mechanism, whether it’s GitHub, or Azure DevOps, or anything else, chances are you use the Git command quite a bit. It’s therefore natural that VS Code offers some fabulous Git integration.

Right out of the box, VS Code has some Git features built into it. To demonstrate many of these features, I’ll use the source code for MSAL Python hosted at https://github.​com/ AzureAD/microsoft-authentication-library-for-python. But feel free to use any moderately realistic Git-based repo.

VS Code’s Git integration can be accessed by clicking on the sidebar button shown in Figure 1.

You can click on that button and VS Code prompts you to either clone a repo or open a folder. Either way, you can work with Git-based repos right inside VS Code. For now, I’ll clone the MSAL python repo and open it in VS Code. I made a minor modification to the README.md file and added a file, and immediately VS Code’s Git integration shows me that I have changes. In fact, right through VS Code, I can perform common functions, such as staging my changes, reverting my changes, or committing the changes, and give it a decent commit message. I can also click on individual files and view a diff. Additionally, each file shows me a nomenclature showing whether a file is modified, untracked, or deleted. You can see in Figure 2 that I have an untracked and a modified file.

But we know that Git is much more powerful than this basic stuff. If you click the triple dots on the corner of the source control window, you can see a pretty interesting menu. This can be seen in Figure 3.

This story is from the September - October 2024 edition of CODE Magazine.

Start your 7-day Magzter GOLD free trial to access thousands of curated premium stories, and 9,000+ magazines and newspapers.

This story is from the September - October 2024 edition of CODE Magazine.

Start your 7-day Magzter GOLD free trial to access thousands of curated premium stories, and 9,000+ magazines and newspapers.

MORE STORIES FROM CODE MAGAZINEView All
Career Development and Staffing reinvented
CODE Magazine

Career Development and Staffing reinvented

You think great talent and cool positions only exist in Silicon Valley? Think again!

time-read
4 mins  |
September - October 2024
Container Orchestration Using Kubernetes
CODE Magazine

Container Orchestration Using Kubernetes

In my previous article on Docker (\"Introduction to Containerization Using Docker,\" Mar/Apr 2021 issue), I explained what containerization is and how Docker simplifies application deployment.

time-read
2 mins  |
September - October 2024
CODE Magazine Presents: The State of AI Mini Conference Tour
CODE Magazine

CODE Magazine Presents: The State of AI Mini Conference Tour

CODE has recently started a new series of inperson events focusing on the topic of artificial intelligence and its practical uses in business scenarios.

time-read
2 mins  |
September - October 2024
Job-Oriented Programming and Pointers in a Scripting Language
CODE Magazine

Job-Oriented Programming and Pointers in a Scripting Language

This article is about using job-oriented programming and pointers in a scripting language.

time-read
3 mins  |
September - October 2024
More VS Code Tips
CODE Magazine

More VS Code Tips

In my previous article in CODE Magazine https://www.codemag.com/Article/240803 1/VS-Code-Tips), shared some of my favorite tips when working with VS Code. As wrote the article, realized that was just brain dumping tidbits I've gathered over many years of using VS Code. The list seemed endless. But what about some larger chunks of tips? Things that every developer

time-read
10+ mins  |
September - October 2024
CODE: 10 Years Ago
CODE Magazine

CODE: 10 Years Ago

In this article, I'm continuing our journey through the last 30 years of anything related to CODE. We're starting to arrive in a reasonably modern era. In fact, when I researched some of the background information for this article, I was continuously surprised that some of these things were a decade ago. Some of the topics discussed in this article seem like they happened

time-read
10+ mins  |
September - October 2024
Store Application Performance Metadata in a Database Using AOP in ASP.NET Core
CODE Magazine

Store Application Performance Metadata in a Database Using AOP in ASP.NET Core

Aspect-Oriented Programming (AOP) is a programming paradigm that attempts to increase the modularity, maintainability, and flexibility of your application while overcoming the traditional Object-Oriented Programming (OOP) limitations.

time-read
8 mins  |
July - August 2024
From Flat to Fantastic: Going Spatial with 2D Applications
CODE Magazine

From Flat to Fantastic: Going Spatial with 2D Applications

The world of head-mounted display HMD) hardware technologies is buzzing with recent advancements, sparking a wave of fresh interest among consumers. From virtual reality VR) and mixed reality MR) to spatial computing, major tech companies and new startups alike are actively investing the launch of the next generation of immersive computing devices.

time-read
10 mins  |
July - August 2024
Exploring .NET MAUI: Getting Started
CODE Magazine

Exploring .NET MAUI: Getting Started

Unlock the true potential of cross-platform development with eXtensible Application Markup Language XAML) and NET MAUI Multi-platform App Ul). Say goodbye to the frustration of writing code for each platform separately. With NET MAUI, you can develop powerful business applications that run seamlessly on Windows, Android, Mac, and iPhone devices.

time-read
5 mins  |
July - August 2024
VS Code Tips
CODE Magazine

VS Code Tips

I'm a huge fan of VS Code, and suspect I'm not the only one. We've emerged from a world of very heavy IDEs Integrated Development Environments). Many of them are still around. They're specialized IDEs that do some things very well, and a very popular one is Visual Studio. Visual Studio has been around for quite some time.

time-read
10+ mins  |
July - August 2024