I am having problems on my M2 MacBook Pro when I have Stan files open in the IDE. When having a .stan file open in the IDE everything becomes extremely slow, take a few minutes to save the Stan file, takes minutes to save a .R file, loading files, saving anything. It has become practically unusable. I have tried uninstalling R, uninstalling Rstudio, reinstalling both, tried the most recent versions, tried older versions. I even did an entire clean install of my OS to see if that was a problem. The problem still persists.
I do not seem to have this problem on my older intel based Macs.