mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-30 17:33:50 +08:00
astyle: add short/long options (#21874)
This commit is contained in:
@@ -10,16 +10,16 @@
|
||||
|
||||
- Applique le style Java avec le style `attached` :
|
||||
|
||||
`astyle --style=java {{chemin/vers/fichier}}`
|
||||
`astyle {{[-A2|--style=java]}} {{chemin/vers/fichier}}`
|
||||
|
||||
- Applique le style `allman` :
|
||||
|
||||
`astyle --style=allman {{chemin/vers/fichier}}`
|
||||
`astyle {{[-A1|--style=allman]}} {{chemin/vers/fichier}}`
|
||||
|
||||
- Applique une indentation personnalisé avec des espaces. Choisi entre 2 et 20 espaces :
|
||||
|
||||
`astyle --indent=spaces={{nombre_d_espaces}} {{chemin/vers/fichier}}`
|
||||
`astyle {{[-s|--indent=spaces=]}}{{nombre_d_espaces}} {{chemin/vers/fichier}}`
|
||||
|
||||
- Applique une indentation personnalisé avec des tabulations. Choisi entre 2 et 20 tabulations :
|
||||
|
||||
`astyle --indent=tab={{nombre_de_tabulations}} {{chemin/vers/fichier}}`
|
||||
`astyle {{[-t|--indent=tab=]}}{{nombre_de_tabulations}} {{chemin/vers/fichier}}`
|
||||
|
||||
@@ -10,16 +10,16 @@
|
||||
|
||||
- Applica lo stile Java con parentesi graffe aperte sulla stessa riga (attached braces):
|
||||
|
||||
`astyle --style=java {{percorso/del/file}}`
|
||||
`astyle {{[-A2|--style=java]}} {{percorso/del/file}}`
|
||||
|
||||
- Applica lo stile allman per parantesi graffe su linee separate (broken braces):
|
||||
|
||||
`astyle --style=allman {{percorso/del/file}}`
|
||||
`astyle {{[-A1|--style=allman]}} {{percorso/del/file}}`
|
||||
|
||||
- Applica un'indentazione personalizzata utilizzando spazi. Scegli tra 2 e 20 spazi:
|
||||
|
||||
`astyle --indent=spaces={{numero_spazi}} {{percorso/del/file}}`
|
||||
`astyle {{[-s|--indent=spaces=]}}{{numero_spazi}} {{percorso/del/file}}`
|
||||
|
||||
- Applica un'indentazione personalizzata utilizzando tab. Scegli tra 2 e 20 tab:
|
||||
|
||||
`astyle --indent=tab={{numero_tab}} {{percorso/del/file}}`
|
||||
`astyle {{[-t|--indent=tab=]}}{{numero_tab}} {{percorso/del/file}}`
|
||||
|
||||
@@ -10,16 +10,16 @@
|
||||
|
||||
- Java 스타일 코드로 적용:
|
||||
|
||||
`astyle --style=java {{경로/파일명}}`
|
||||
`astyle {{[-A2|--style=java]}} {{경로/파일명}}`
|
||||
|
||||
- allman 스타일 코드로 적용:
|
||||
|
||||
`astyle --style=allman {{경로/파일명}}`
|
||||
`astyle {{[-A1|--style=allman]}} {{경로/파일명}}`
|
||||
|
||||
- 공간을 사용하여 사용자 지정 들여쓰기를 적용합니다. 2에서 20개 사이의 공간을 선택합니다:
|
||||
|
||||
`astyle --indent=spaces={{띄어쓸_수}} {{경로/파일명}}`
|
||||
`astyle {{[-s|--indent=spaces=]}}{{띄어쓸_수}} {{경로/파일명}}`
|
||||
|
||||
- 탭을 사용하여 사용자 지정 들여쓰기를 적용합니다. 2에서 20 탭 사이에서 선택합니다:
|
||||
|
||||
`astyle --indent=tab={{탭_수}} {{경로/파일명}}`
|
||||
`astyle {{[-t|--indent=tab=]}}{{탭_수}} {{경로/파일명}}`
|
||||
|
||||
Reference in New Issue
Block a user