Is there an option to paste while maintaining relative indentation?
I looked in preferences and searched in forums but no results so far. This question is similar but it seems that the IDE's are too different.
Here's what I would like it to do:
Example 1:
if (a > b) {
echo "bounce";
}
Example 2:
function sample () {
if ( test() ) {
echo "testing results...";
// here I need to paste example 1 code without having to fix the indentation afterwards
// also I can't have it "reflowing" the new or old code
}
}
Can this be done yet?
Thanks!
Please sign in to leave a comment.
Hi Leo,
Check this setting: File | Settings | Editor | Smart Keys --> Reformat on paste -- pick option that is the best for you
Thank you for the help, that was it