How to Hide node_modules Folder in VS Code?

Introduction

If you’re working with Node.js, chances are you’ve encountered the node_modules folder. This folder is created when you install packages from NPM and can take up an incredible amount of space. To keep your workspace clean and tidy, you might want to learn how to hide the node_modules folder in Visual Studio Code. In this blog post, we’ll explain how to do it in three easy steps.

Step 1: Open Settings

The first step is to open the settings in Visual Studio Code. You can do this by clicking on the gear icon in the bottom-left corner of the sidebar.

Step 2: Find Files Exclude

Once you open the settings, you’ll need to find the Files: Exclude section. This section allows you to hide certain files and folders from the Explorer view.

Step 3: Add node_modules

The final step is to add the node_modules folder to the list of excluded files and folders. To do this, you’ll need to type in the name of the folder in the text field. Once you do that, the node_modules folder will no longer appear in the Explorer view.

Conclusion

That’s all you need to know about hiding the node_modules folder in Visual Studio Code. It’s a simple process that can help you keep your workspace uncluttered and organized. Give it a try and see how it works for you!

Happy Coding!

Advertisement

How to suppress Pandas Future warning ?

I’ve been working some code with python and doing some operation with pandas library.

I used to get future warning in the console like some method is going to changed or deprecated in the future.

So change it to something else like that.

For sometime, it was fine for me. Over period of time, it was bit annoying. Because I was looking for errors description or output in the console. But this future warning message is showing up regularly and reduced my focus towards main items I need to work on.

So I decided to hide those future warning message in the console for a moment. I was looking at the internet and found an generic way to do it.

By adding following line in the code, all the future warning has been hidden from the console.

import warnings
warnings.simplefilter(action='ignore', category=FutureWarning)
import pandas

Hope this will be helpful for someone in future or may be for myself.

Happy Coding!

Reference

https://github.com/pandas-dev/pandas/issues/2841#issuecomment-13382440


Related post -> Pandas “Can only compare identically-labeled DataFrame objects” error