Commit Graph
30 Commits
Author SHA1 Message Date
Ekaterina Tuzova 35cd1bebe1 do not anyhow change text pasted to a string literal
fixed PY-9566 pasting code on an indented line inserts that indentation at the end of the line
2013-06-19 18:44:15 +04:00
Ekaterina Tuzova ae3e43830c fixed PY-9337 Copy paste doesn't always preserve the relative indentation of what is pasted.
improved indent calculation
2013-04-09 19:31:16 +04:00
Ekaterina Tuzova b16f001f8f fixed PY-9337 Copy paste doesn't always preserve the relative indentation of what is pasted.
check if we need to add leading spaces to pasted text
2013-04-09 19:31:15 +04:00
Ekaterina Tuzova 5c329b2289 fixed PY-9070 Indentation is broken when pasting code. 2013-03-11 15:39:11 +04:00
Ekaterina Tuzova ca83eb89e0 moved python smart copy-paste logic to python module
so fixed PY-8982, PY-7709, PY-7470, PY-6994, PY-6992, PY-6987, PY-6888
2013-03-07 18:40:27 +04:00
Ekaterina Tuzova 105fe1507f do not count "\n" as part of indent 2013-02-18 15:07:41 +04:00
Ekaterina Tuzova 2a2166092c fix CR-IC-97 (indent is counted in tab units so need multiplication instead of division)
handle empty insertion line properly
2013-02-15 19:47:10 +04:00
Ekaterina Tuzova 2d7a87f56e get into account tab characters for file type
PY-8580 "Smart indent pasted lines" does not work with tabs in python
2013-02-13 12:55:08 +04:00
Ekaterina Tuzova aeb7b075c6 use the proper caret offset in case of selection. Do not overindent when replacing selection
PY-8744 Smart indent pasted lines doesn't replace selection when pasting multi-line code
2013-02-12 16:46:45 +04:00
Ekaterina Tuzova ef0c8408ea do not move caret to the line beginning in case of selection on paste
fixed PY-8693 Smart indent pasted lines deletes part of string if pasting Django ORM query
2013-02-04 13:26:38 +04:00
Dmitry Jemerov 279a136c14 change option "between top-level classes and functions" to "around ...", ensure that we put two lines between import and class (PY-7743) 2012-12-13 20:21:08 +01:00
Ekaterina Tuzova 981c7a0021 fixed PY-7599 Conflict with bin/pycharm64.exe.vmoptions upgrading from PyCharm 2.6.1 to 2.6.2 2012-09-18 17:43:20 +04:00
Ekaterina Tuzova 95d8e470fc fixed PY-7524 Dragged/pasted code in wrong location
fixed PY-7470 Smart copy-paste unindents next line (in place insert)
2012-09-11 20:29:47 +04:00
Ekaterina Tuzova 25c85acb6a fixed PY-6994 Paste leads to syntactically incorrect code in case pasting copied text instead of selection 2012-08-02 14:30:01 +04:00
Ekaterina Tuzova 8f303236f0 fixed PY-6995 Extra indents when pasting code with non-rectangle selection between top-level statements 2012-07-31 16:54:44 +04:00
Ekaterina Tuzova 6aa655c180 logic for indenting after pasting does not based on copying now
PY-6884, PY-6965, PY-6966, PY-6907
2012-07-16 19:18:49 +04:00
Ekaterina Tuzova 98e5444553 fixed PY-6884 Paste changes code logic in case empty line inside indented block 2012-07-12 14:06:58 +04:00
Ekaterina Tuzova ec5c008967 fixed PY-6889 Incorrect indent on pasting class method on module-level right after the class itself 2012-07-11 20:59:36 +04:00
Ekaterina Tuzova 4775d2a6f5 fixed PY-6907 Paste leads to syntactically incorrect code in case of dedent in copied text 2012-07-11 18:45:11 +04:00
Ekaterina Tuzova 05e4fb3e28 fixed PY-6927 Paste always pastes copied text to the second indent level regardless caret position when pasting to the end of the function 2012-07-10 19:50:26 +04:00
Ekaterina Tuzova 9d28280928 fixed PY-6928 Paste inserts code one line after caret and messes up code in case for as the last compound statement in function
PY-6907 Paste leads to syntactically incorrect code in case of dedent in copied text
2012-07-10 19:08:10 +04:00
Ekaterina Tuzova ff1984c976 fixed PY-6886 Paste leads to syntactically incorrect code with caret beyond actual indent 2012-07-06 18:29:35 +04:00
Ekaterina Tuzova 84cf35f70e fixed PY-6887 Paste changes code logic when making top-level function inner 2012-07-06 15:41:59 +04:00
Ekaterina Tuzova 0bd83dfb36 fixed PY-6889 Incorrect indent on pasting class method on module-level right after the class itself 2012-07-06 14:28:28 +04:00
Ekaterina Tuzova 469ce0ca36 fixed inner function bug in copy-paste 2012-07-03 15:41:27 +04:00
Ekaterina Tuzova a67f912cc5 Smart copy-paste
fixed PY-6410 Adding/Pasting text at the end of a class method causes the next class method to be moved outside the class
2012-07-02 15:45:20 +04:00
Ekaterina Tuzova 45403110b7 fixed PY-6410 Adding/Pasting text at the end of a class method causes the next class method to be moved outside the class 2012-05-05 19:59:37 +04:00
Dmitry Jemerov 1489ebcf04 don't try to preserve indentation when pasting single-line fragment (PY-1815) 2010-09-15 22:12:54 +04:00
Dmitry Jemerov 9e4cd7558f remove bogus indent > 0 check 2010-09-10 17:51:13 +04:00
Dmitry Jemerov e311373524 smart indent on paste for Python (PY-208) 2010-09-07 23:12:34 +04:00