Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

How to delete all comments in a selected code section?

Long Lion answered on February 9, 2023 Popularity 6/10 Helpfulness 7/10

Contents


More Related Answers

  • python remove all comments
  • how to remove Website field from comments
  • remove comments from python file
  • remove all comments function in c
  • remove all comments vscode
  • how to remove the comment column in word
  • remove comments from python file
  • Sublime - delete the entire selected line
  • how to highlight and comment out code in subl
  • remove all comments
  • lxml remove comments

  • How to delete all comments in a selected code section?

    1

    Use the following Regex pattern to remove all comments from your code: 

    It will remove both full line comments and end-of-line comments.

    Turn on Regular Expressions under "Find and Replace", then enter this pattern into the search box; leave the Replace field empty. Once you're done, hit the "Replace All" button.

    Popularity 6/10 Helpfulness 7/10 Language typescript
    Link to this answer
    Share Copy Link
    Contributed on Feb 09 2023
    Long Lion
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.