Xcode Full Codeblock Indentation Visualization
I feel very comfortable in an editor having vertical binding line for a single block of code within a pair of curly braces

Xcode doesn't provide this feature. It's much pathetic. For the last one hour I searched for extensions to add this feature to Xcode but didn't find required one. Finally I'm mentioning here the alternatives Xcode provides:
1st Alternative
Single click on right(exactly) side of opening/closing curly braces, It'll highlight its complementary curly brace. But highlighting duration is just one second. It's annoying when the complementary brace is out of display.
2nd Alternative
Editor->Invisibles. This converts the invisible spaces to visible dots. It's little bit of help but not that much.


3rd Alternative
Hover your cursor over the type of data then press command button (vice-versa). Now you'll get a highlighted block like below. In the image: Hovering on "struct TabBarItem" lets you apply the feature. Hovering on "private" won't allow this since that's not included in type of data.

In following image: Hovering on "var" will allow this highlight, neither "static" nor "previews" will allow this feature since those are not part of type.


4th Alternative
Double Tap on left(exactly) side of opening/closing curly braces, change the background color of the block of code.

5th Alternative
Xcode->preference->Text Editing->Code folding ribbon(check this option). You will find a ribbon like below.

These are okay but each of these is of less help than vertical binding line.

Xcode doesn't provide this feature. It's much pathetic. For the last one hour I searched for extensions to add this feature to Xcode but didn't find required one. Finally I'm mentioning here the alternatives Xcode provides:
1st Alternative
Single click on right(exactly) side of opening/closing curly braces, It'll highlight its complementary curly brace. But highlighting duration is just one second. It's annoying when the complementary brace is out of display.
2nd Alternative
Editor->Invisibles. This converts the invisible spaces to visible dots. It's little bit of help but not that much.


3rd Alternative
Hover your cursor over the type of data then press command button (vice-versa). Now you'll get a highlighted block like below. In the image: Hovering on "struct TabBarItem" lets you apply the feature. Hovering on "private" won't allow this since that's not included in type of data.

In following image: Hovering on "var" will allow this highlight, neither "static" nor "previews" will allow this feature since those are not part of type.


4th Alternative
Double Tap on left(exactly) side of opening/closing curly braces, change the background color of the block of code.

5th Alternative
Xcode->preference->Text Editing->Code folding ribbon(check this option). You will find a ribbon like below.

These are okay but each of these is of less help than vertical binding line.
Comments
Post a Comment