On_IDE_paste: issue with formatting

I got used to 2016.3's remembering where the indent level was when I would paste from the clipboard it would replicate the indention level and keep things in place.

2017.1 dumps all clipboard pastes to the root of the line at the carat.

This behavior is undesired.

Where is this trick setting?

What do you call this behavior?

0

Hi there,

AFAIK nothing has changed -- such option was and still present. Possibly it has different value for you now.

You must be talking about this option: "Settings/Preferences | Editor | General | Smart Keys --> Reformat on paste"

HINT: try search field in the Settings screen -- it helps narrowing possible options quite a bit.

 

0

That option does not effect the behavior of paste for me, I have tried all four settings.

Say I'm working on adding a bunch of line items like this:

I select, then copy the line to be duplicated.  then I hit paste, and this occurs...

This behavior did not occur prior to updating to 2017.1.  But If I mannually select the begining of one of those lines and hit return I get this result

So its not the text formatting that is buggy, its the paste code.

0

It seems to work OK for me with my settings (tested in plain PHP and plain HTML/CSS files)

1) Do you select whole line before copying it?

2) Will it behave the same if you press Ctrl+C (Copy) without selecting anything?

3) Will "Edit | Duplicate Line" (Ctrl+D) will behave the same?

4) Will it work OK if you invoke actual actions via menu and not by shortcuts?

5) Will it be any better if you disable ALL 3rd party plugins (custom ones -- that are not bundled by default)?

6) Anything interesting in the idea.log file (Help | Show Log in ...)

 

I'm on Windows 10 and have never seen such stuff. Maybe it's some OS-dependent issue (Linux?)

Right now I have no other ideas.

0

#1: Yes.

#2: I am using CMD-C for copy.

#3: Yes, CMD-D does replicate the issues I am having with paste.

#4: Yes, behavior persists if using the slower methods of ordering a copy and paste.

#5: I am using a vanilla install.  (Don't get me started on plugins, seems one has to be a serious programmer just to configure the engine that lets you start to make one.   I could cuss and grumble all day about the lack of a clear path towards building even simple marcos...)

#6: Yes....   Though its not linked to the filename of the active edit.

2017-04-13 09:28:09,556 [  42671]   WARN - tectAndAdjustIndentOptionsTask - Indent detection is too long for: RiderEditAlt.php 
2017-04-13 09:28:09,557 [  42672]   WARN - tectAndAdjustIndentOptionsTask - Indent detection is too long for: RiderEditAlt.php
2017-04-13 09:28:09,557 [  42672]   WARN - tectAndAdjustIndentOptionsTask - Indent detection is too long for: EventSignup.php
2017-04-13 09:28:09,557 [  42672]   WARN - tectAndAdjustIndentOptionsTask - Indent detection is too long for: ikeqcfuncs.inc
2017-04-13 09:28:09,557 [  42672]   WARN - tectAndAdjustIndentOptionsTask - Indent detection is too long for: schema.ddl

2017-04-13 10:23:57,774 [3390889]   WARN - tectAndAdjustIndentOptionsTask - Indent detection is too long for: experiment1.php
2017-04-13 10:23:57,774 [3390889]   WARN - tectAndAdjustIndentOptionsTask - Indent detection is too long for: experiment1.php

Of these, only ikeqcfuncs.inc is opened.

 

And yes, I am on MacOS Sierra (10.12.3).  2016.3 worked fine on this version of MacOS.  I have not updated MacOS since updating PHPStorm.

0

I got notification about new comment ... but still do not see it here (must be forum issues -- it often just stops responding and it takes like 20 mins to even open the page see the post -- uploading pics and posting answer is a separate category of "fun")

>WARN - tectAndAdjustIndentOptionsTask - Indent detection is too long for

The only option I could think of would be "Settings/Preferences | Editor | Code Style --> Detect and use existing file indents for editing" -- try disabling it -- it could be the one that fails for some reason.

Other than that (especially since you said that you have no custom plugins) -- please use "Submit a request" link on top of this page and provide your idea.log file there.

0

请先登录再写评论。