Files
openide/python/testData/copyPaste/UseExistingIndentWhenCaretAtFirstColumnEndOfFile.src.py
Mikhail Golubev 574ddcd3a5 PY-20138 Use existing indent of pasted fragment if caret is at first column
Unless this indentation is going to break existing block structure,
e.g. by splitting the containing function in the middle.
Additionally I improved detection of an empty statement list when the
caret is at the end of file.
2016-10-11 17:24:06 +03:00

4 lines
54 B
Python

def foo():
<selection> a = 1
b = 2
</selection>