When I do a regex-replace and replace with the empty string, the console.logs() are removed but the empty lines still remain. How would I remove these empty lines? Furthermore, how would I replace all console.log()s with // console.logs()s?

  • You can type a newline in the minibuffer with C-q C-j. Alternatively, use M-x flush-lines . – phils Jan 8 at 23:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.