When pasting code in, can I fix the formatting?

Is there a keyboard shortcut or something to fix the indentation of code?

Not that I know of, but perhaps this user-created Prettier bookmarklet might help reformat your pasted code to be a little better: https://prettier.glitch.me/

1 Like