I was informed by @hft that by combining the total time derivation:
$$\frac{dL}{dt} = \frac{\partial L}{\partial x}\dot{x} + \frac{\partial L}{\partial \dot{x}}\ddot{x} + \frac{\partial L}{\partial t}$$
and:
$$\frac{\partial L}{\partial t}=0$$
We can get:
$$\frac{d}{dt}\bigg(\frac{\partial L}{\partial\dot{x}}\dot{x}-L\bigg)=0$$
which shows conservation of energy. However, I don't fully understand how one can combine these two equations and get the equation shown above. Could someone please show this process step by step? Thanks.