thebaselab / codeapp

Building a full-fledged code editor for iPad
https://code.thebaselab.com
MIT License
2.84k stars 188 forks source link

Add support for vertical rulers/guides #1088

Open cosinami opened 2 months ago

cosinami commented 2 months ago

This is a feature of the Monaco Editor that I think would be a welcome addition to Code App.

Currently, within VS Code, vertical rulers are added/modified through the following settings.json property:

"editor.rulers": [
     80,    // A vertical line at column 80.
     120   // A vertical line at column 120.
]

For Monaco, to my knowledge, rulers is managed through its EditorOptions property.

bummoblizard commented 2 months ago

Actually we should add support for settings.json.

Reference: https://code.visualstudio.com/docs/getstarted/settings#_workspace-settingsjson-location