This plugin sets the height of a selected text layer or all text layers in a selected group to it’s content’s height.
Usage
Select a text layer or a group containing text layers.
To remove whitespace and linebreaks on the beginning and end of the text:
Select Plugins
> Textbox fit Content
> Trim and fit text
or press ⌘
+ Shift
+F
To keep all whitespace and linebreaks on the beginning and end of the text:
Select Plugins
> Textbox fit Content
> Fit text
or press ⌘
+alt
+Shift
+F
To automatically make the textbox fit it’s content height when the text changes enable the auto-fit mode:
Select Plugins
> Textbox fit Content
> Toggle auto-fit text
or press ⌘
+ctrl
+Shift
+F