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

Fix indentation for all Swift files. #994

Merged
merged 3 commits into from
Aug 26, 2023

Conversation

thai-d-v
Copy link
Contributor

Bugfix

I re-indent all Swift files (2 space width).

@@ -23,12 +23,12 @@ import WatchConnectivity
class AppDelegate: UIResponder, UIApplicationDelegate {
static weak var shared: AppDelegate?
var pendingURLActions = [Action]()

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way to leave unmodified the empty lines without any whitespace?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a few options, but the setting for this is in Settings (⌘,) > Text Editing > Editing > While Editing, and setting both the "Automatically trim trailing whitespace" and "Including whitespace-only lines".

Sometimes this doesn't work very reliably with re-indent, so you may need to find and replace using something like sed with something like s/^\s+$//g.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GianniCarlo I fixed it. Thank you @harrisi.

Copy link
Collaborator

@GianniCarlo GianniCarlo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@GianniCarlo GianniCarlo merged commit 6af9ee6 into TortugaPower:develop Aug 26, 2023
1 check passed
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

Successfully merging this pull request may close these issues.

3 participants