3 ms·
Why not use your editor to do this? I would never expend mental energy doing something this trivial in 2024.
by jjallen 2y ago
Why not use your editor to do this? I would never expend mental energy doing something this trivial in 2024.
- teddyh 2y agoYes. A quick search yielded: <https://github.com/DarthFennec/highlight-indent-guides https://github.com/DarthFennec/highlight-indent-guides>
- deleted 2y ago[deleted]
- mort96 2y agoUse my editor to do .. what exactly?
- rented_mule 2y agoUse what are often called "indentation guides". Here's an extreme form of them from the blockman extension for vscode: https://raw.githubusercontent.com/leodevbro/vscode-blockman/main/demo-media/video/python-demo---c2-apng.png https://raw.githubusercontent.com/leodevbro/vscode-blockman/...
- mort96 2y ago1) that looks incredibly cluttered (yes, even compared to braces), and 2) it doesn't help a whole lot when reading code in any context what so ever which is outside of my preferred editor (including in github/gitlab merge requests or 'git diff' locally)
- rented_mule 2y agoFor me, what is visual clutter is all about what I'm used to. After a short period of adaptation, I found indentation guides disappeared when I was looking for them. You can also choose your styling. As I mentioned above, that was an extreme example. Here's a style that adds very little clutter (mine look a lot like this): https://i.sstatic.net/nxPrP.png https://i.sstatic.net/nxPrP.png Also in the spirit of modern tooling, VSCode has had the ability to navigate GitHub Pull Requests, with all the normal code editing tooling, since 2018. I'd be surprised if it's alone in that ability in 2024. The same is possible with Gitlab Merge Requests using Gitlab's own extension. I can also use VSCode to remotely edit on almost any Linux/Mac/Windows machine that I can ssh into, or inside Docker containers.
- xigoi 2y agoUnlike braces, indent guides don’t take up vertical space, so it’s much less cluttered.
- mixmastamyk 2y agoIndentation guides have been a thing in editors for about thirty? years. Geany supports them for example. Turn them on and never mistake a level again. I also turn on visible whitespace but make the color very subtle in the syntax highlighting section. Makes inconsistencies jump off the screen. Other little features like deleting trailing whitespace are your friend.
- mort96 2y agoOh I'll just call Microsoft and ask them to install an indentation guides plug-in to the GitHub merge request diff view, one sec
- mixmastamyk 2y ago[flagged]
- mort96 2y agoHow do I enable that feature in the GitHub merge request diff view?
- mixmastamyk 2y agoI just explained why that question is nonsensical. What do you hope to achieve by repeating it?
- mort96 2y agoYou said: > Everything outside of notepad already supports it—that was the point, dumbass. As a response to me pointing out that it's not supported in the GitHub diff view. That response is nonsensical unless you meant to say that it's supported in the GitHub diff view.
- mixmastamyk 2y ago
- jjallen 2y agoTo reformat your code for you. Quick two strokes should do it. I use Jetbrains and it’s select all -> alt ctrl L I think. Massive timesaver. Anything a computer can do to help coders good IDEs can do in the blink of an eye.