A little while ago I wrote a guide for using Git submodules effectively with JetBrains Rider. It’s especially useful if you write your own libraries that you reuse across projects. It predates my Mastodon shift by a couple months, so I probably never posted it here: https://www.stevestreeting.com/2022/09/20/git-submodules-tips-for-jetbrains-ides/
It probably applies to other JetBrains IDEs as well!