I find selections + Stroke Selection with a solid line to be a quick way to draw outlined raster shapes with a set stroke width, it’s a lot less work than setting up the perfect outline brush for the shape tools, and selections can give me more precise and complex shapes.
However, their usefulness for precisely sized selections and selections with sharp corners is limited because the stroke is always centered on the selection edge:
- If I want to draw a 100x100 box with 4px border, I have to think ahead and stroke 8px and delete the outer or inner part of it, depending on where I want the border. Deleting can be non-trivial if the relevant space has other things in it - it’s safest to create a temporary layer to do all this on, which adds even more steps. I need precisely-sized boxes and other convex shapes like this a lot when I’m making pixel art game UI.
- If I want to add an outline to a character or object, it’s very easy to select that character or object and then stroke the selection, but this too requires extra steps if I want the outline to be outside the character.
Aside from doubling the desired stroke and removing half of it, another option is to use Layer Styles, which do have Inside and Outside options. However, they apply to the entire layer, so they add extra steps: make a new layer with your selected content (or with white on Multiply for when the content is empty and you want only the stroke), set the stroke style (including the color - can’t just use Foreground Color there), then merge with the layer the strokes are supposed to be on. Being able to Stroke Selection Inside and Outside would remove all these extra steps and speed things up for me.
I suspect this option isn’t available for Stroke Selection for the same reason it’s not available for the shape tools - support for Brush strokes makes it more complicated. While I’d love to see Inside/Outside options for that too, for my needs, I’d be happy with these options available only for “Solid line” strokes, which hopefully can be implemented similarly to the Stroke Layer Styles.