Unruley is a Visual Studio Code extension that allows you to easily see where lines are exceeding a given maximum line length.
- Set a custom color.
- Set a custom opacity, or use the default of 0.1.
- Define a maximum line length for your code (or use one that's already been set).
The background color is automatically applied to lines that exceed the maximum line length, providing a helpful visual cue.
Unruley Settings Unruley In Action- Allow users to set and update settings per workspace.
- Install the extension.
- Open the settings:
- File > Preferences > Settings or
- Mac: ⌘ + ⇧ + P (Command + Shift + P)
- Windows: ^ + ⇧ + P (Ctrl + Shift + P)
- Search for Unruley.
- Set your preferred background color. Click here to use Google's color picker. You can use hex (e.g.,
#RRGGBBor#RGB) or rgb (e.g.,rgb(255, 0, 0)) color formats. - Set the background color opacity.
- Set the maximum line length.
unruley: Open the settings for this extension.
unruley.ruler: Set the maximum line length. Default is80.unruley.rulerColor: Set the background color. Accepts hex (e.g.,#RRGGBBor#RGB) or rgb (e.g.,rgb(255, 0, 0)) color formats. Default is#ff0000.unruley.rulerColorOpacity: Set the opacity of the background color. Accepts a number between0(completely transparent) and1(completely opaque). Default is0.1.
Questions? Comments? Concerns? Ideas? Visit the Unruley discussions board.
Ready to dive in and contribute? Check out the Contributing Guide.
GPL v3.0 © Brenna Stuart