visual studio 2022 community is the free version meant for students. this is a full fledged IDE and consume lots of resources. you have the min configuration
https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Community&rel=17
but a lighter weight solution would to use visual studio code.
many of the you tube videos will use this tool.
I would start with visual studio code, and the dotnet command line. assuming you installed the dotnet sdk and visual studio code:
mkdir myfirstapp
cd myfirstapp
dotnet new razor
code .
you can then edit and debug.