1. By using Substitutions from Preferences
1: Go to Preferences.
In the Upper main menu bar, click on the Tools option. Then click on the Preferences option.
2: the fraction in the Substitutions tab.
Click on the Substitutions option. Then select the required fraction. So after that When you write a fraction using Slash it will automatically convert to a fraction.