Corto y pego los ejemplos de Objective-C de Safari en Xcode pero el formateo se arruina. Sé que puedo hacer varias búsquedas y reemplazar por {y \ r, pero ¿hay alguna solución de un solo botón en alguna parte? Opción/complemento de Xcode. Plugin TextEdit, etc.Cómo formatear el código Objective-C
Respuesta: He creado un AppleScript en TextWrangler
tell application "TextWrangler"
activate
replace "- (" using "\\r- (" searching in text 1 of text document "untitled text" options {search mode:literal, starting at top:true, wrap around:false, backwards:false, case sensitive:false, match words:false, extend selection:false}
select find window
select text 1 of find window
replace ";" using ";\\r" searching in text 1 of text document "untitled text" options {search mode:literal, starting at top:true, wrap around:false, backwards:false, case sensitive:false, match words:false, extend selection:false}
select find window
replace "{" using "{\\r" searching in text 1 of text document "untitled text" options {search mode:literal, starting at top:true, wrap around:false, backwards:false, case sensitive:false, match words:false, extend selection:false}
select find window
replace "//" using "\\r//" searching in text 1 of text document "untitled text" options {search mode:literal, starting at top:true, wrap around:false, backwards:false, case sensitive:false, match words:false, extend selection:false}
end tell
Utilicé TextWrangler tiene la opción de grabar un AppleScript luego encontró/reemplazó para agregar \ r después}; y - ( –