Here's a couple of item templates I made for VS. These are the steps to download and use them:
Download the .zip
files provided below and then copy them over to this location:
%USERPROFILE%\Documents\Visual Studio 2022\My Exported Templates
(going to this through explorer or run should work). Restart VS and continue.
- https://www.dropbox.com/s/2o4kj7jwtyx9np6/ModItem.zip?dl=0
- https://www.dropbox.com/s/09njmpyd98ew326/ModProjectile.zip?dl=0
Next time you have to make a new ModItem or ModProjectile, simply right click on whatever folder you want to add it to, and click on Add New Item. In the wizard, select ModItem or ModProjectile, name the file, and continue.
You can also use Ctrl + Shift + A
. The new file will be updated with your namespace, SetDefaults hooks, and for projectiles, GetAlpha and AI hooks.