Formatting code in Notepad++

Is there a keyboard shortcut to format code in Notepad++ ?
I’m mainly working with HTML, CSS and Python code.

For example:

<title>{% block title %}    {% endblock %}</title>      
 <link rel="stylesheet" href="https://stackoverflow.com/media/style.css" type="text/css" media="screen" />
</head>

To:

<head>
  <title>
    {% block title %}
    {% endblock %}
  </title>
  <link rel="stylesheet" href="https://stackoverflow.com/media/style.css" type="text/css" media="screen" />
</head>

I remember Visual Studio doing it with Ctrl+K+D and NetBeans having the feature too but can’t find it within Notepad++, if it can even do it.

14 Answers
14

Leave a Comment