Ignoring Azurite Files

Ignoring Azurite Files

In the old days, developers relied on the Azure Storage Emulator to emulate Azure Storage services locally. However, Azure Storage Emulator has been deprecated and replaced with Azurite, which is now the recommended way to emulate Azure Blob, Queue, and Table storage locally. In this post, let’s see how to set up exclusions in Visual Studio Code to prevent unwanted Azurite files from cluttering your workspace while working with Function Apps.

Azurite files

Starting Azurite Services

In Visual Studio Code, you can start Azurite services

Start Azurite

Visual Studio Code: Setting Up File Exclusions

Azurite’s local emulation files, while essential, can quickly overpopulate your project. To keep them hidden, Visual Studio Code’s files.exclude feature allows you to filter them out. Here’s how to add the necessary configuration to hide these files.

  1. Open the settings.json file in your project.

Open Visual Studio Code Settings

  1. Add the following block to exclude Azurite files:
1
2
3
4
5
"files.exclude": {
"__azurite__": true,
"__blobstorage__": true,
"__queuestorage__": true
}

This will automatically hide Azurite-related files from the VS Code explorer.

Open Visual Studio Code Settings

Conclusion

By setting up file exclusions in Visual Studio Code and .gitignore, you can prevent clutter from unnecessary Azurite files. This streamlines your development process and keeps your project cleaner.

References

Author

Ricky Gummadi

Posted on

2024-02-23

Updated on

2024-09-08

Licensed under

Comments