- Open VS Code.
- Click on File.
- Then find Preferences -> settings.
- Click on the Text Editor in the left side menu.
- Locate the Scroll Beyond Last Column (Controls the number of extra characters beyond which the editor will scroll horizontally.) Setting and change it.