Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 5 indentation issue

I get indentation issues when I copy few lines and paste it. Xcode does not copy indentation properly or applies another indentations.

As shown in below images, I copied first function and pasted which is second function. Indentation are reapplied except for first line.

enter image description here

I played with Xcode indentation settings but could not solve it neither do I have any clue why this happens.

Below are 2 indentation settings I tried.

enter image description here

enter image description here

Do anybody see anything wrong in above settings?

like image 478
Geek Avatar asked Nov 01 '22 09:11

Geek


1 Answers

In Xcode preferences, Key Bindings tab, redefine ⌘-V to "Paste and Preserve Formatting" and ⌘-option-shift-V to "Paste". Then ⌘-V will do "Paste and Preserve Formatting" which is what you want.

like image 188
user1772388 Avatar answered Nov 12 '22 21:11

user1772388