In the features page of Xcode 5 says it supports VI and emacs editor along with textedit and xed. But I can't find any documentation that describes how to switch editors. Has anyone figured this out?
Those are not features of Xcode 5. "vi" and "emacs" are listed as editors available under OS X.
If you want "vi" support in Xcode you should have a look at https://github.com/JugglerShu/XVim
Related
When I was using MacOS 12.5.1, I found out that older version(e.g. 11.3) of Xcodes can't be opened. It's icon became a banned image and can be opened neither by double click nor 'open' cmd in terminal.
So I want to know how to verify Xcode in terminal? Use 'open' cmd is an option but if the target app is available, it will be opened which I don't expect to happen.
I found there is a "Minimum system version" in /Applications/Xcode.app/Contents/Info.plist, but no "Max system version". In my case I wanna to know which older verison of xcode is unavailable on new MacOS. Any help will be appreciated!
Use the excellent Go64 application from St. Clair Software. When you load it and scan, you can then see programs that will not work on your system clearly marked with a strike thru circle:
I've just updated Xcode to 9.3 and I've noticed that "Open Quickly" ( cmdshiftO) interface have reverted to white theme (instead of black on previous versions, which obeyed my Mac's color theme, which is dark):
My Mac's theme is the dark theme and, for example, Spotlight Search obeys it:
Xcode's Open Quickly was also dark like Spotlight Search too, until I updated. Why would have it turned to light theme and how do I make it obey the system theme again?
As far as I know there's no easy way to get back the dark theme. It's possible, but it involves unsigning Xcode and byte patching the DVTKit binary that's in the Xcode bundle. I wrote a blog post about this a few days ago. In summary, to get back the dark Open Quickly theme in Xcode 9.3*, perform the following steps (at your own risk):
Download Hex Fiend
Open Xcode.app/Contents/SharedFrameworks/DVTKit.framework/Versions/A/DVTKit in Hex Fiend.
Navigate to adress 0x00000000000163cd using Edit > Jump to Offset.
Replace the byte right after the insertion point that says 31 with 09.
Save.
Download unsign and follow the installation instructions.
Unsign the Xcode binary using $ unsign Xcode.app/Contents/MacOS/Xcode. This will produce a new binary.
Replace the signed Xcode binary with the unsigned binary using $ mv Xcode.app/Contents/MacOS/Xcode.unsigned Xcode.app/Contents/MacOS/Xcode
Launch Xcode and revel in the return of the dark Open Quickly theme.
* Only tested on Xcode 9.3 (9E145) downloaded from the Apple Developer Portal
With that said, it's probably not worth the effort :-) Since the dark theme is still there (but disabled) I would expect it to return in one of the next Xcode releases. It might even be there in the Xcode 9.4 beta (I haven't tried it yet).
Okay, as seen on WWDC 2018, it is coming back with the whole Dark Mode theme on the new macOS.
It's available only under Xcode 3.x. The hands-like tab between Windows and Help.
What is this tab used for?
Xcode 3.2.6
After trying by myself. It is actually User Scripts as the image shows.
And it's gone since Xcode 4 onwards.
Reference:
https://devforums.apple.com/message/380673#380673
Is it possible to 'simulate interface' in xcode 4.6? The command seems to be missing :-(
I am using Xcode 5 and you can find this feature under Editor-> Simulate Document (not the Edit menu) as others have pointed out.
However, this feature is only available for Mac xibs and is not available for iOS xibs.
I am guessing this was probably the same situation in Xcode 4.6 back when the question was originally asked, hence the confusion in the other questions and comments.
Is it possible to 'simulate interface' in xcode 4.6? The command seems to be missing :-(
It seems, NO
In xcode 4.6, you can find from menu bar:
Editor (NOT Edit) menu >> Simulate Document
This one may be helped :)
Here's my setup
Mac OS X 10.6
VIM (default version that comes with OSX 10.6)
rails.vim (installed in .vim/autoload)
ir_black.vim (installed in .vim/colors)
i have "colorscheme ir_black" and "syn on" in ~/.vimrc
Now when I go into terminal and edit a ruby file with vim my colors are messed up. There are only a few colors showing up and some text is even blinking. I'm wondering if there's a conflict between rails.vim syntax highlighting and the ir_black color scheme? Can anyone help me fix this? I would like to use the ir_black color scheme.
The Mac OSX Terminal.app in Snow Leopard does not support 256 colors, which is required for the ir_black theme (this is the theme I use).
Download and try something like iTerm.app (http://iterm.sourceforge.net/), and you shouldn't have a problem with colors.
Or you could use MacVim (http://code.google.com/p/macvim/)
Edit: As of OSX 10.7 Lion, the built in Terminal.app now supports 256 colors. See the comment below by Chris Page for how to achieve this.
I've been using a nearly identical setup, except for vim, which I grab from Macports. A few years ago I found ir_black and loved it. I now use it for all vim sessions, Terminal.app, and TextMate. Getting it to work with Leopard, and then Snow Leopard was a tad hokey. But things have improved. Follow the instructions here, Making Terminal.app look great in Snow Leopard.
As mentioned by others, ir_black requires 256 colors, which is not supported by Terminal on 10.6.x and earlier.
As of Mac OS X Lion 10.7, Terminal now supports 256 colors and the default $TERM value is xterm-256colors. ir_black should work fine for you if you upgrade to Lion.
on testing which colors can be displayed in your terminal of choice:
i just found this perl script on vim.org which dumps a list of 256 colors your terminal could possibly display...
http://www.vim.org/scripts/script.php?script_id=1349
I have been using iTerm and was shocked to find out Terminal.app doesn't support 256 colors! I recommend Bryan's answer.
However, if you ever get in a bind like this, you can change $TERM to vt100 and vim won't try to use colors. In bash (the default MacOSX shell) you set this with:
export TERM='vt100'
I use ir_black in Terminal.app but in 16 color mode, and it looks great. If you really prefer 256 color, I recommend iTerm2. The settings allow you to have the terminal report itself as "xterm-256" which is what's needed to use 256 colors in Vim.
Check this website for the procedure:
http://kevin.colyar.net/2011/01/pretty-vim-color-schemes-in-iterm2
There is a ir_black-based Vim theme called tir_black which is better suited for 256 colors:
http://www.vim.org/scripts/script.php?script_id=2777
Looks awesome!
iTerm2 also has loads of nifty features.
I hope this helps.
I had the same issue with iTerm and solved it by going to Settings > Profile > Terminal > Report Terminal Type and setting it to xterm-256color.