So at the most fundamental we have a definition of chemical potentials and temperatures and pressure as$$dU = T ~dS - P ~dV + \sum_i \mu_i ~dN_i,$$where $U$ is the internal energy, $S$ is the entropy, $V$ is the volume, and $N_i$ is the number of particles of species $i.$ One way to read this is that it tells you for example what $\left(\frac{\partial S}{\partial U}\right)_{V,N_i}$ is, it's $1/T$, since you can just set $dV = 0$ and $dN_i = 0$ when you're evaluating this partial derivative.
What if you're not holding $S$ constant but instead holding $T$ constant? Well then the above equation does not tell you much because there is no $dT$ term that we can set to be equal to zero. Instead we decide that internal energy is not the right state parameter for our situation and instead we want to consider a "free energy", a Legendre transform of $U$, in this case (constant volume and temperature) we want $F = U - T S$ to get $$dF = -S ~dT - P ~dV + \sum_i \mu_i~dN_i.$$Now we look at this expression and we just "see" that $$\left(\frac{\partial F}{\partial V}\right)_{T,N_i} = -P.$$Again, if you don't see it, just set $dT = 0, ~~dN_i = 0,$ ask how $F$ changes with a change in $V$.
So now we expand the $F = U - TS$ equation to get the relation that you've got:$$\left(\frac{\partial F}{\partial V}\right)_{T,N_i} = \left(\frac{\partial U}{\partial V}\right)_{T,N_i} + T \left(\frac{\partial S}{\partial V}\right)_{T,N_i}.$$That first term looks fine, what about the second term? Well, that's a Maxwell relation and it also requires coming back to this $F$ term since that has both $S$ and $P$ out front. Since partial derivatives commute we have that $$\left( \frac{\partial}{\partial T} \left(\frac{\partial F} {\partial V}\right)_{T,N_i}\right)_{V,N_i} = \left( \frac{\partial}{\partial V} \left(\frac{\partial F} {\partial T}\right)_{V,N_i}\right)_{T,N_i},$$and going back to this expression for $dF$ you can see that these are precisely $-S$ and $-P$, hence eliminating the double-negative gives:$$\left( \frac{\partial P}{\partial T} \right)_{V,N_i} = \left( \frac{\partial S}{\partial V} \right)_{T,N_i},$$
which we substitute into the above expression.