How is your Xcode layout and workflow?

  • Hello List,

    I would like to embark on a - hopefully - longer discussion. I like
    Xcode a lot, and I like the option for various workspace layouts.
    However, I have not quite figured out my "perfect workflow".

    As used to work on Lightspeed, Think and Symantec C, and of course
    CodeWarrior. But then I have been "brainwashed" by VisualStudio for
    about five years before I returned to the platform using
    ProjectBuilder, and subsequently Xcode. In the earlier PB times, I
    spend a lot of time coding in vim. Consequently, I have filed an ER
    for vim mode in Xcode, but that is another issue.

    So, on single monitor machines I used the "all-in-one" layout, but
    there are still some things that do not seem naturally for me.

    - Is there a shortcut from the Debug to the Project view, so I can
    pick a file to set breakpoints in?

    On multi-monitor machines, I am still trying to figure out what works
    best for me. The fact that I have to open the console log in every
    but the "all-in-one" view is one of the things I do not like.

    But let's quit the whining:

    - What is your Workspace configuration, especially on multi-monitor
    machines, or machines with plenty of pixel real-estate?

    - What are the power workflow-tips you want to share with other Xcode
    users?

    Things like: Did you know
    * Cmd-Opt-Up Arrow will open the matching .m/.h file?
    * Ctrl-1, 2, 3 and 4 will open history, function list, included files
    and bookmark menus?

    Hopefully this can become an interesting thread, for both casual and
    habitual users of Xcode.

    Alex
  • On 6 Apr 2006, at 12:09, Alexander v. Below wrote:

    > - Is there a shortcut from the Debug to the Project view, so I can
    > pick a file to set breakpoints in?

    Isn't it cmd-0?

    > - What is your Workspace configuration, especially on multi-monitor
    > machines, or machines with plenty of pixel real-estate?

    As CodeWarrior-like as I can get it. Though sometimes I have to open
    a Detail window since there's no filtering in the Condensed window
    rdar://4255476.

    > - What are the power workflow-tips you want to share with other
    > Xcode users?
    >
    > Things like: Did you know
    > * Cmd-Opt-Up Arrow will open the matching .m/.h file?

    No, but cmd-` is easier to type and remember. (Possibly this is from
    the CodeWarrior key equivalents, which of course I use, since I still
    sometimes use both tools.)

    David Dunham  http://www.pensee.com/dunham/
    Imagination is more important than knowledge. -- Albert Einstein
  • On 6 Apr 2006, at 12:09, Alexander v. Below wrote:

    > * Ctrl-1, 2, 3 and 4 will open history, function list, included
    > files and bookmark menus?

    Why would anyone ever use the History menu?

    Or, perhaps my question should be, what the heck is that menu doing
    in a Condensed layout? I've only ever seen a single entry  in the
    menu (not counting the maintenance items). I assume the little
    triangles to its left are related. They're always dim.

    David Dunham  http://www.pensee.com/dunham/
    Imagination is more important than knowledge. -- Albert Einstein
  • Frankly, I am just thankful to have the condensed layout.  I've said this
    many times, but I love Visual Studio.  I like being able to drag and drop
    views (such as memory/local vars/watch vars/call stack, etc).  I like being
    able to set break points on addresses of variables whenever they get changed
    to another value (can this be done in Xcode?  I know you can watch
    variables, but that is only for the scope of the function (or class?)).

    Granted, VS's project management (setting up paths, includes, etc) does NOT
    compare to Xcode.  Lucky for that.  However, I do find myself spending most
    of my debugging time in VS instead of Xcode.  I also wish Seapine would
    integrate SurroundSCM with Xcode.

    Mark

    On 4/6/06 3:22 PM, "David Dunham" <dunham...> wrote:

    >
    > On 6 Apr 2006, at 12:09, Alexander v. Below wrote:
    >
    >> * Ctrl-1, 2, 3 and 4 will open history, function list, included
    >> files and bookmark menus?
    >
    > Why would anyone ever use the History menu?
    >
    > Or, perhaps my question should be, what the heck is that menu doing
    > in a Condensed layout? I've only ever seen a single entry  in the
    > menu (not counting the maintenance items). I assume the little
    > triangles to its left are related. They're always dim.
    >
    > David Dunham  http://www.pensee.com/dunham/
    > Imagination is more important than knowledge. -- Albert Einstein
    >
    > _______________________________________________
    > Do not post admin requests to the list. They will be ignored.
    > Xcode-users mailing list      (<Xcode-users...>)
    > Help/Unsubscribe/Update your Subscription:
    > http://lists.apple.com/mailman/options/xcode-users/<mstultz...>
    >
    > This email sent to <mstultz...>
  • Am 06.04.2006 um 22:22 schrieb David Dunham:

    >
    > Why would anyone ever use the History menu?
    >
    > Or, perhaps my question should be, what the heck is that menu doing
    > in a Condensed layout? I've only ever seen a single entry  in the
    > menu (not counting the maintenance items). I assume the little
    > triangles to its left are related. They're always dim.

    What is in the history menu, and in what order is still a mystery to me.

    Alex
  • On Apr 6, 2006, at 3:09 PM, Alexander v. Below wrote:

    > Hello List,
    >
    > I would like to embark on a - hopefully - longer discussion. I like
    > Xcode a lot, and I like the option for various workspace layouts.
    > However, I have not quite figured out my "perfect workflow".

    Hey Alex,

    I'm always switching things around in Xcode, trying to find my
    perfect setup and best workflow environment.  I finally feel like I
    have everything just the way I want it.  Here's how I (X) code:

    Under preferences:
    - [General] Layout: "All-In-One" is my new favorite option, I didn't
    like windows opening all over the place
    - [General] Automatically clear (run) log
    - [Building] change "For unsaved files" to "Always Save" (Instead of
    getting a dialog every time you build)

    Key Bindings:
    Code Sense: Control-Space (had to move QuickSilver to opt-space)
    If using the all-in-one layout, change these three shortcuts (to
    switch between the different pages, or views):
    - Project Menu > Project
    - Build Menu > Build Results
    - Debug Menu > Debugger

    Finally, I use subversion, and have it installed to /usr/local/bin/
    svn, and all new projects think it is in /usr/local/subversion/bin/.
    There is an expert preference to fix that:
    defaults write com.Apple.Xcode XCSubversionToolPath /new/dir/here/

    Also, I have a custom user script that will insert a call to NSLog, b/
    c the code sense one requires too much arrowing around (to put a
    semicolon at the end), mine inserts it like this:
    NSLog(@"

    Unlike the folks at Adobe, I think Xcode is a really awesome IDE (but
    to be fair, I'm not writing an app that huge, and mine didn't need to
    be migrated, they were always in Xcode).

    Good luck and hope these tips help someone!
    -Sean
  • On 4/6/06, Alexander v. Below <below...> wrote:

    > What is in the history menu, and in what order is still a mystery to me.

    Works for me, at least:  In all-in-one mode, enable the attached
    editor, and (single) click on 4 or 5 files in the groups & files list,
    which opens them all in the editor.  If you don't close the individual
    files, they stay in the editor, accessible by either the forward/back
    buttons, or the pulldown.  These even persist across a close/reopen of
    the project.  As for order, .h and .m files do seem to be grouped
    together.

    On 4/6/06, Sean Murphy <cocoa...> wrote:

    > Also, I have a custom user script that will insert a call to NSLog, b/c the
    > code sense one requires too much arrowing around (to put a semicolon at the
    > end), mine inserts it like this:
    > NSLog(@"

    Huh?  I type log, hit ctrl-., and start typing.  The end quotes and
    semicolon are all there, with <#message#> already selected for
    replacement by typing:

    NSLog(@"<#message#>");

    J.
  • On Apr 6, 2006, at 6:20 PM, Jordan Krushen wrote:

    > Huh?  I type log, hit ctrl-., and start typing.  The end quotes and
    > semicolon are all there, with <#message#> already selected for
    > replacement by typing:
    >
    > NSLog(@"<#message#>");
    >
    > J.

    Nice.  I was typing "nslog", (instead of just "log") then ctrl+.
    which gives a different completion.

    - Murph
  • On 4/6/06, Sean Murphy <cocoa...> wrote:

    > On Apr 6, 2006, at 6:20 PM, Jordan Krushen wrote:

    >> Huh?  I type log, hit ctrl-., and start typing.  The end quotes and
    >> semicolon are all there, with <#message#> already selected for
    >> replacement by typing:

    > Nice.  I was typing "nslog", (instead of just "log") then ctrl+.
    > which gives a different completion.

    Ahh, so it does :)  That one seems to be more useful if you're reusing
    the format string, given that the blurb mentions (NSString *)format.
    It would still help to have the semicolon, tho.

    J.
  • Alexander v. Below wrote on Thursday, April 6, 2006:

    > What is in the history menu, and in what order is still a mystery to me.

    The history menu contains a list of files that have been recently viewed in that specific window. In the Condensed and Default layouts this is typically only one file as files are opened in new windows by default. However in windows like the Project Find, Documentation, and Class Browser source panes, it conveniently lists the files you've recently viewed using those tools.

    The order has always been alphabetical for me.

    Trick #1: You can switch any open text editor window/pane to another file and add that file to the its history by dragging the icon of the file into to navigation bar (the one with the history pop-up). Even in Default and Condensed layouts, you can then flip between two or more files in the same window.

    Trick #2: Holding down the Option key changes the history pop-up from the local history for that individual window to the global history of all recently opened files. Switching to a file in the global history list adds that file to the window's history.

    Trick #3: Just like in the documentation window, Command+Option+Left/Right arrow will cycle through the files in the window's history. Note that the order of the files will be most-recently-visited -- not the order in the menu. Files only appear once in the stack of recently visted files, so re-visiting a file rotates it to the top of the stack.

    James Bucanek
    ____________________________________________________________________
    Author of Beginning Xcode                          ISBN: 047175479X
    <http://www.beginningxcode.com/>          Available April 3rd, 2006
  • On 7 Apr 2006, at 07:44, James Bucanek wrote:

    > The history menu contains a list of files that have been recently
    > viewed in that specific window. In the Condensed and Default
    > layouts this is typically only one file as files are opened in new
    > windows by default.

    > Trick #2: Holding down the Option key changes the history pop-up
    > from the local history for that individual window to the global
    > history of all recently opened files. Switching to a file in the
    > global history list adds that file to the window's history.

    Ah, so that's why its there in Condensed and Default. I still don't
    see any value to this, and wonder why our windows are cluttered in
    those layouts.

    BTW, this thread inspired me to take another look at Default layout.
    I still prefer Condensed, since there's no duplication of file names.
    I sure wish I could have a search field in Condensed, however...
    <rdar://4255476>

    David Dunham  http://www.pensee.com/dunham/
    Imagination is more important than knowledge. -- Albert Einstein
previous month april 2006 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Go to today