Turn on advanced options.
Among the options, one useful enables the screen to stay on while the phone is charging.
To active developer mode, click “About phone”, then tap seven times on the build version. This will enable developer mode and notify you of the activation. Then in phone setting there should be a new “Developer options” menu item.
Here are a few screenshots: