Prøve GULL - Gratis

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.

CODE Magazine

Denne historien er fra September - October 2024-utgaven av CODE Magazine.

Abonner på Magzter GOLD for å få tilgang til tusenvis av kuraterte premiumhistorier og over 9000 magasiner og aviser.

Allerede abonnent?

FLERE HISTORIER FRA CODE Magazine

CODE Magazine

Identifying and Reducing Test Case Combinatorial Explosions with Python's Abstract Syntax Tree (AST) and Pytest Framework

Test matrix explosions are a growing challenge in modern software testing, especially when using parameterized tests in machine learning pipelines.

time to read

3 mins

July - August 2025

CODE Magazine

CODE Magazine

The New Features and Enhancements in .NET 10 H

By the end of this year, Microsoft plans to release .NET 10 (in November 2025). Incidentally, it will be a Long-Term Support (LTS) release. The preview version of .NET 10 is already available.

time to read

2 mins

July - August 2025

CODE Magazine

Unlocking Angular Performance: Optimization Techniques

Optimizing Angular applications for speed and efficiency requires a deliberate strategy.

time to read

2 mins

July - August 2025

CODE Magazine

Git Branching Strategies

Sometimes when we reach for the stars, we forget to keep our feet on the ground. Whenever I sit down to write these articles, I wonder what I should write about.

time to read

6 mins

July - August 2025

CODE Magazine

Sending Email with SendGrid

C# provides several ways to send email. Maybe you've used the SMTPClient class or perhaps you've used the Mailkit NuGet package, which is what Microsoft recommends for new code.

time to read

4 mins

July - August 2025

CODE Magazine

Natural Language Al-Powered Smart UI

Looking for real-world AI examples is a challenge and part of this challenge comes from Generative AI (GenAI) news dominating the media. It feels like every AI demo involves chatting with GenAl to produce content. The obligatory chat completion demo has started to become the to-do list of AI demo apps, and, to make matters worse, it's selling AI short.

time to read

9 mins

July - August 2025

CODE Magazine

CODE Magazine

Three Conferences, One Destination: MAXIMIZING YOUR AI-ERA LEARNING INVESTMENT

MAXIMIZING YOUR AI-ERA LEARNING INVESTMENT

time to read

4 mins

July - August 2025

CODE Magazine

Exploring .NET MAUI: Popups, Messages, and Data Validation

Through this article series, you've created several .NET MAUI pages, performed navigation, used data binding, and worked with the MVVM and DI design patterns. As you created your view models, you've set information and exception message properties. In this article, you'll build reusable components to display information, error, and validation messages on your pages. To validate

time to read

11 mins

May - June 2025

CODE Magazine

Unlock Serverless Azure Functions

The evolution of cloud computing has transformed how developers build and deploy applications. One of the most significant shifts in this evolution is the rise of serverless architecture. Traditionally, building and maintaining applications requires managing servers, scaling infrastructure, and handling operational concerns.

time to read

10 mins

May - June 2025

CODE Magazine

Securing ASP.NET Core Blazor Applications

Blazor is a modern web framework from Microsoft used for building interactive web applications using C# and .NET. It's based on a flexible, modular component model well suited for building applications with rich, interactive web user interfaces. Blazor leverages the authentication mechanism of ASP.NET Core to establish the identity of a user.

time to read

5 mins

May - June 2025

Listen

Translate

Share

-
+

Change font size