sean-parent / tools Goto Github PK
View Code? Open in Web Editor NEWA place for scripts and tooling I find useful
A place for scripts and tooling I find useful
toast
clang-format failed.
Could not find front document.
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...
To reproduce this issue, you can try to reformat the following code snippet:
if (![helper verify:faceInfo] || ![helper insideScreen:faceInfo]) {
[self updateFaceInfoOnUIThread:faceInfo];
[self updateTrackingLabelOnUIThread:@"检测不到人脸"];
return nil;
}
In my xcode(10.3 on Mojave 10.14.6), the chinese string "检测不到人脸", will turn into "妫ü娴�涓���颁汉���" after reformatted, namely a garbled string.
Could you please help?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.