The workbench in VS Code on the left has 5 buttons so cmd+1 through cmd+5 will select them.
Running the debugger is started with cmd+r and stopping the debugging is done with cmd+. just like Xcode.
The workbench in VS Code on the left has 5 buttons so cmd+1 through cmd+5 will select them.
Running the debugger is started with cmd+r and stopping the debugging is done with cmd+. just like Xcode.
FWIW: I (@Rondy) am not the author of the content presented here, which is an outline from Edmond Lau's book. I've just copy-pasted it from somewhere and saved as a personal gist, before it got popular on newsnews.ycombinator.com. I don't remember where exactly the original source is from and neither could find the author's name, so I cannot give him/her the proper credits.
I've been using [Backblaze][bbz] for a while now as my online backup service. I have used a few others in the past. None were particularly satisfactory until Backblaze came along.
It was - still is - keenly priced at a flat $5 (£4) per month for unlimited backup (I've currently got just under half a terabyte backed-up). It has a fast, reliable client. The company itself is [transparent about their operations][trans] and [generous with their knowledge sharing][blog]. To me, this says they understand their customers well. I've never had reliability problems and everything about the outfit exudes a sense of simple, quick, solid quality. The service has even saved the day on a couple of occasions where I've lost files.
Safe to say, I'm a happy customer. If you're not already using Backblaze, [I highly recommend you do][recommend].
If you work on a Swift project that follows the Model-View-ViewModel (MVVM) architecture or similar, you may want to jump to counterpart in Xcode from your view to your model, and then to your view model. (ie. by using Ctrl+Cmd+Up and Ctrl+Cmd+Down).
You can do this in recent versions of Xcode by setting a configuration default.
From a terminal, just type this command and press Enter:
defaults write com.apple.dt.Xcode IDEAdditionalCounterpartSuffixes -array-add "ViewModel" "View"| struct CardHeading: View { | |
| @State private var touchZoom: Bool = false | |
| var body: some View { | |
| VStack(spacing: 0) { | |
| Image("banner") | |
| .resizable() | |
| .aspectRatio(contentMode: ContentMode.fill) | |
| .frame(minWidth: 0, maxWidth: .infinity, maxHeight: 400) | |
| .clipped() |
Author: Chris Lattner
| //: Playground - noun: a place where people can play | |
| import UIKit | |
| import PlaygroundSupport | |
| class Responder: NSObject { | |
| @objc func segmentedControlValueChanged(_ sender: UISegmentedControl) { | |
| UIView.animate(withDuration: 0.3) { | |
| buttonBar.frame.origin.x = (segmentedControl.frame.width / CGFloat(segmentedControl.numberOfSegments)) * CGFloat(segmentedControl.selectedSegmentIndex) | |
| } |
| // | |
| // DataProviding.swift | |
| // GenericsDataSource | |
| // | |
| // Created by Frank Courville on 2019-05-09. | |
| // Copyright © 2019 iOS Coach Frank. All rights reserved. | |
| // | |
| import UIKit |
##Adding Swift Build System
Preferences > Browse Packages...Swift.sublime-build inside Packages directory.Swift.sublime-build file.{
"shell_cmd": "xcrun swift $file",
| #!/usr/bin/env ruby | |
| # gist: https://gist.github.com/3217498 | |
| # This script can be called from an Xcode 'Run Script' build phase at the | |
| # beginning of the build process, like this: | |
| # | |
| # ${PROJECT_DIR}/LocalizeStringsFromAndroid.rb ${PROJECT_NAME} | |
| # | |
| # This script should be placed in the same directory as your .xcodeproj |