How to use properly the indices in Latex editor like `Tex studio` ?

For example, when I am typing $x^{p\_{q\_r}}$, it looks like $p$ and $q$ sits side by side and $r$ is at down. But these are all proper subscript. What should I use for more clear position ?

In case of two indices (one is subscript of other), everything looks fine, but in case three indices it looks not good. What is salvation ?

For example, see

[![enter image description here](https://i.stack.imgur.com/SWj69.png)](https://i.stack.imgur.com/SWj69.png)