There was already a setting for this with markdown:
>When typing code with ```, Enter should not send the message.
>With this checked use ShiftEnter to send.
So they didn't really provide anything new here, just changed the default behavior.
edit: formatting