Issue #25  (Working with Git Repos)10/12/22

Advertisement
Get a weekly dose of tools, articles, and other resources covering remote work, productivity, career well-being, and lots more.

As I've mentioned previously, Git features are integrated directly inside VS Code in the Source Control sidebar panel. All the basic Git features are easily accessible in that panel, along with more advanced source control features in the "Views and More Actions..." menu (three dots).

Along with those basic Git features, you have ways to customize how VS Code works with your Git repositories. If you open your Settings UI and type "git" you'll see different ways to customize how VS Code interacts with your repositories.
 
Git-based settings in VS Code

Some notable settings you might consider adjusting include setting Autofetch to "true" (it's false by default) and assigning a custom Autofetch Period, or duration between autofetch requests:
 
Changing Git Autofetch settings in VS Code

This means if there are any changes to the remote repository, VS Code will automatically fetch those changes for me at the specified interval. These might also be settings you'll want to adjust on a project by project basis. So you can use VS Code's Workspaces feature to define custom autofetching for specific projects, and leave the defaults in place for others.

You can also define when repositories are automatically detected and there are a number of branch-related settings such as automatically adding a custom prefix to all newly created branches:
 
Auto repository detection and branch prefixes in VS Code

Again, these are settings that may be most useful when applied to specific repositories using VS Code Workspaces, not necessarily global settings that apply everywhere.

Finally, you might want to change the number of prompts you get when working with Git in VS Code:

Changing prompts for Git-related actions in VS Code

Most of these prompts are probably useful to keep, but if you want to improve your workflow speed by avoiding alerts that you don't require, you might consider turning one or more of these off.
 
Now on to this week's hand-picked links!

 
 

VS Code Tools

VS Code for Chrome — Chrome extension that allows you to quickly get to any GitHub repository in insiders.vscode.dev. Simply type `code` to trigger the omnibox and open your recent GitHub repositories in insiders.vscode.dev.

Svelte for VS Code — VS Code extension that provides syntax highlighting and rich intellisense for Svelte components in VS Code, using the svelte language server.

Real-Time Debugging — An extension for VS Code that visualizes how a program is being executed in real time. GIF demo is for Node.js, but apparently will work with any language.

Grammarly — VS Code extension that brings Grammarly, the popular online writing assistant, to VS Code. You can choose what file types to enable it on (.md, .txt, etc).

VS Code Articles

Building PowerShell Azure Functions with VS Code [Series] — First of a two-part series, this one showing you how to build a real-world example of running PowerShell in the cloud to learn how Azure Functions work with PowerShell.

VS Code Community Discussions for Extension Authors — A blog post announcing the official launch of a new discussion forum that provides a place for extension authors to ask questions, connect with the community, and showcase their work.

What Are Snippets in VSCode? — An article discussing how to utilize the built in Snippets feature in VS Code, which is basically a text expander inside your IDE.

Morning Brew — A 5-minute daily email that makes reading the news enjoyable. Stay informed and entertained, for free.   Sponsor 

Best of the Rest

TeamCode — A collaborative development platform to build and run apps in the cloud via a lightweight online IDE.

RefactorJs — A platform where you can share code examples and receive feedback in the form of refactored versions.

GitHub Copilot in the Terminal — A hacky solution to allow for GitHub Copilot suggestions to work in the terminal by treating Neovim as a thin shell-around-a-shell.


Suggestions?

If you have any link suggestions, including a tool, article, or other resources related to VS Code or another IDE, send it via DM on X: @LouisLazaris or just hit reply on this email.

That's it for this issue.

Happy VS Coding!
Louis
VSCode.Email
@LouisLazaris
Copyright © VSCode.Email. All rights reserved.

Not affiliated with Microsoft, Visual Studio Code, or any of its trademarks.