Using the User Interface (Button): While in the visual editor, click the Open Text Editor button (code icon < >) in the editor's title bar.
< >
Using the Command Palette: Run AutomationView: Open Text Editor.