Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Direction for Usage is not clear #5

Open
super-brian opened this issue Oct 19, 2019 · 1 comment
Open

Direction for Usage is not clear #5

super-brian opened this issue Oct 19, 2019 · 1 comment

Comments

@super-brian
Copy link

First, I want to thank Sean Parent.
Help me use it.
So, I followed everything to install it, by making a folder 'xcode' in my home directory, and then it has 'tools' directory. I made a file called '.clang-format' which has this as its content:

UseTab: Never
IndentWidth: 4
BreakBeforeBraces: Allman
AllowShortIfStatementsOnASingleLine: false
IndentCaseLabels: false
ColumnLimit: 0

Then, since I didn't change the shortcut for cmd+c or cmd+v, I didn't edit any other file.
Then... do I have to select all contents of the file to format it? Is it automatically format the file whenever I save the file? Would you clarify how to use it? Do I have to restart xcode after setting it? It looks like nothing works...

@super-brian
Copy link
Author

Oh, the in order to use it, I have to select the text, then choose from menu, Xcode > behaviors > xcode-format, right? well then my code looks really bad. Could you share your '.clang-format' file that works good with swift?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant