How to insert Python code block in Notepad ++?

When coding in Matlab, I had the ability to intelligently indent my code using the Ctrl+ shortcut i. Is there a similar option for Pythonusing Notepad++?

In particular, I am looking for a solution to the following problem:
I want a block

line 1
line 2
line 3

to convert to

    line 1
    line 2
    line 3

On a side note, I found this surprisingly simple with the SE editor (keyboard shortcut: Ctrl+ k). I want this feature to be available for other languages ​​as well (in my experience, a good indentation didn't kill anyone, regardless of language).

+4
source share
3 answers

Tab. , Shift + Tab.

" ", (\t ). , , Python ( .py, Python Language), . , "" β†’ "" β†’ " " ( Python " : 4" " " ).

+6

3 Tab. , Shift, Tab.

Pro Tip: 2 , , .

:

enter image description here

, β†’

:
  • : , , , .
  • MISC: -, .
+2

Python, , . .

0

Source: https://habr.com/ru/post/1538157/


All Articles