How to wrap lines via TSX Code Style?
How can I make long props definitions like this, to wrap via Settings > Code Styles?
From a TSX file:
export const FigureLabelPropertiesView = ({figureLabel, reference, onDelete}: { figureLabel: FigureLabel, reference: Reference, onDelete: () => void }) => {
return (<Segment raised style={{
position: 'fixed',
top: '20px',
right: '20px'
}}>
<Label horizontal>{reference.label}</Label>{reference.text}
<Button icon={'trash'} onClick={onDelete}/>
</Segment>);
};
Please sign in to leave a comment.
No way to wrap them automatically, add line breaks yourself and make suree that Keep when reformatting/Line breaks is enabled