Skip to content

Column indicator #1536

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks done
thebigMoose opened this issue Oct 5, 2022 · 2 comments
Closed
3 tasks done

Column indicator #1536

thebigMoose opened this issue Oct 5, 2022 · 2 comments
Assignees
Labels
conclusion: invalid Issue/PR not valid topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@thebigMoose
Copy link

Describe the request

Would sure appreciate a settable column indicator (a faint vertical line) useful for alignment of comments. Something like MPLAB X IDE has.

Describe the current behavior

I do not believe this feature currently exists.

Arduino IDE version

2.0.0

Operating system

Windows

Operating system version

10

Additional context

No response

Issue checklist

  • I searched for previous requests in the issue tracker
  • I verified the feature was still missing when using the latest nightly build
  • My request contains all necessary details
@thebigMoose thebigMoose added the type: enhancement Proposed improvement label Oct 5, 2022
@per1234
Copy link
Contributor

per1234 commented Oct 5, 2022

Hi @thebigMoose. Thanks for your request. I'm happy to tell you the IDE already has this capability, which can be configured via the advanced settings. I'll provide instructions:

  1. Press the Ctrl+Shift+P keyboard shortcut (Command+Shift+P for macOS users) to open the "Command Palette".
  2. Select the "Preferences: Open Settings (UI)" command from the menu.
  3. A "Preferences" tab will now open in the Arduino IDE. In the "Search Settings" field of that tab, type editor.rulers
  4. You will now see an "Editor: Rulers" setting. Under the "Render vertical rulers after a certain number of monospace characters ..." description, there is an "Edit in settings.json" link. Click that link.
    A bug makes the link very difficult to see if you are using the light theme, but it is there if you look carefully.
  5. A file named settings.json will now open in an editor tab in the IDE. You will see a line that looks like this:
    "editor.rulers": []
    Add the column number at which you want the ruler to be shown inside the square brackets. For example, if you wanted it at column 120, it should look like this:
    "editor.rulers": [120]
    You can create multiple rulers by separating the column numbers with commas.
  6. Click the X icon on the "settings.json" tab.
  7. Click the X icon on the "Preferences" tab.

It seem the setting does not take effect reliably in the currently open IDE window, but if you restart the IDE you should now see the ruler at the configured position.

@per1234 per1234 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 5, 2022
@per1234 per1234 self-assigned this Oct 5, 2022
@per1234 per1234 added conclusion: invalid Issue/PR not valid topic: code Related to content of the project itself labels Oct 5, 2022
@thebigMoose
Copy link
Author

per1234 Thank You! I would never have figured that out on my own. Thanks for being kind to this ol' guy... your instructions were perfect!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: invalid Issue/PR not valid topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

2 participants