Rectangular cursor keypad in XCode - xcode

I've got interesting strange bug in Xcode. I can't find an information and can't fix it.
What happened. One day I came into office, and launched the project in XCode (I do not remember the sequence of actions), and instead of a standard keyboard cursor when editing text, I see a flashing white rectangle. The rectangle is similar to the cursor in the operating system DOS. I can not turn it off. The problem has plagued me for a second day.
Take screen shot
Buttons H, J, K, L perform cursor in the text. Backspace key does not work. Later, after some keystrokes, everything becomes normal, the cursor becomes a standard. After a few seconds, the cursor becomes black again, and everything continues to this scheme.
Additional information:
Mac mini 2011, OS Mac OSX Lion 10.7.3, XCode 4.3;
The problem only occurs in XCode;
The problem occurs with all projects;
I did not change system settings or XCode;
This is not a text selection. If you hold the left mouse button, the rectangle appears on the left of the cursor, in the normal state, the cursor is displayed on the right;
XCode reinstalled several times, with reboots the computer;
Delete all data in the folder ~ Library/Developer/ and ~/System/Library/Developer;
Connect other mouse and keyboard;
I was looking for information on google and stackoverflow.
Thank you for your answer!

I solved this problem.
Deleted XCode. Then I used the program "Find Any File" to search for files containing the title of "xcode" and deleted all files that have been found. Then reinstalled XCode and the problem disappeared.
I tried to find where the settings are XCode but did not find such information, so delete all files containing "xcode" in the title.

This happened to me and I found that I had installed xVim and hadn't noticed it since the changed don't take effect until after restarting Xcode. I removed the plugin in ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins to fix the issue.

Related

How to solve XCode swipe gesture to go to previous / next file freeze editor?

Since this morning I'm facing a really annoying bug in XCode 5 on Mavericks :
I'm heavily used to swipe from left to right with two fingers on the MacBook trackpad to go to the XCode editor previous / next files.
BUT, now, doing this totally freeze the editor after having just moved for something like 5 px.
After that I have to close XCode and reopen it to make the editor work again.
Pressing the previous / next button works wel since it doesn't trigger this buggy animation.
Did anyone had this problem before or has any clue to solve it ?
In fact this problem is affecting other swipe gesture like the previous / next swipe in Safari.
I found a way to fix this on Apple Support Forum, by resetting the NVRAM.
Shut down your Mac.
Locate the following keys on the keyboard: cmd ⌘alt ⌥PR. You will need to hold these keys down simultaneously in next step.
Turn on the computer and immediately press and hold the cmd ⌘alt ⌥PR keys before the gray screen appears.
Hold the keys down until the computer restarts and you hear the startup sound for the second time.
Release the keys.
When your Mac finishes starting up, you might want to open System Preferences and adjust settings that have been reset, such as sound volume, display resolution, startup disk selection, or time zone.
Apple support: https://support.apple.com/en-us/HT204063
For me, in Xcode 8.3.3 and Xcode 9, it started working after
Go to the system preferences
Go to Trackpad
Select and deselect "Tap to click"

Tabbing between Xcode project windows?

Basically I am supposed to press Command + the [`~] button that is above the Tab.
This question has been answered twice here:
Tabbing between Xcode projects?
and
Navigate Between Projects in XCode 4.0
But it just wont work for me, has anything changed in the xcode versions? or the way the mac behaves?
When I press this combination all I hear is the "invalid" sound.
I am using the newest Mac OS mountain lion.
Sorry if this belong to the super user stack overflow I just figured more Xcode users would be found here.
I can do the swipe on the mouse pad to bring the screen where I see all the active windows for the current application... but this is much slower than just tabbing between the 2 projects I'm usually working with.
Thanks
Do I infer from your comment about using the three finger swipe (for Mission Control) that the second window is not on the same desktop as the other windows? The command+` sequence only jumps between windows on the same desktop, not between different desktops (which is not to be confused with two physical monitors, which you can jump between, if you have multiple monitors hooked up to your computer).
The inability of command+` to not jump between desktops is a little curious, because command+tab, which jumps between apps, does go across desktops. If you want to jump between desktops, you can press control+1 or control+2 to jump to desktop 1 or 2, respectively. It should be noted, though, that while that might be a good alternative when trying to jump between your two desktops, though it admittedly selects the last active window in that other desktop, not necessarily a window from your current app in that other desktop. Also control+left and control+right let you jump between desktops, too.
This is a Mac OS "feature", not an Xcode issue, I believe. The command+` ability to jump between windows (but not windows across Mission Control desktops) is the same behavior across the Mac OS.
Update:
If this keyboard shortcut is not working at all, in any app, even within a single Mission Control desktop, then you don't need to worry about Xcode settings, but rather focus your attention on the keyboard settings:
You might want to look at your "Move focus to the next window" keyboard shortcut. There have been reported problems of people with international keyboards not getting this to work properly, but by clicking on (and thereby selecting) the command+` graphic, you can try using different keyboard shortcut, and see if that does it for you.
I have mountain lion as far as i know.
How about this?
control + down
You'll get the current application windows.
Below them there should be a horizontal list of recent projects for Xcode (both opened and closed). With arrows left or right choose the project (it should be highlighted with blue) and press enter.

Control-Command-Up not switching to counterpart file in Xcode on Lion.

Since the three finger swipe has been stolen in Lion, I find myself forced to resort to the keyboard to switch between .h and .m files. Two finger swipe left and right only seems to work infrequently, and that should be for scrolling anyways.
The keyboard command should be Control-Command-Up, but for some reason this takes me out of Xcode and shows the project file in Finder.
I have checked both System Preferences, and Xcode's key bindings settings, and I can't find anything wrong. Xcode is set properly, and I can't find any conflicts.
Do you by any chance have another program such as Afloat installed that might be taking over the key combination? For instance, Afloat uses the Control-Command-Up key combo to do just what you described - show the open application's file in Finder.
Besides changing the key combo, the Xcode default Control-Command-Down will also switch to the counterpart.
I think it's a bug. For now I assigned another key combination: ^Q and ^Z to "jump to counterpart" and it works.

Xcode scrolls text while typing

Xcode seems to be doing something annoying today.
I like editing my source code so that I'm typing roughly in the vertical center of my Xcode window. I don't like typing near the bottom or the top of the window as it hides code right before or right after the code I'm busy editing.
Lately, while editing an implementation file, Xcode has a habit of scrolling the text so that I'm editing close to the bottom of the window. This scrolling is triggered every time any code completion takes place.
Has anyone seen this before? If so, how can I turn it off or is it simply a bug?
You may be encountering a bug where one text view scrolls unexpectedly when a second window is open on the same file. Make sure that the file is not open in any other windows if this is what's happening.
I also noticed this in Xcode 5 and earlier. It appears that Apple has fixed this in Xcode 6. I am running Xcode 6.4 and no longer see the issue.

Xcode window positions when switching from dual to single monitor

When I'm working at home I plug my MacBook in to my 20" monitor as a second (right side) monitor. I do all my editing in Xcode on the larger monitor, and leave the menu bar, debugging and documentation on the laptop's monitor.
The problem is when I disconnect from the second monitor and want to work on code in "laptop" mode. Now, whenever I open a file for editing, it shows up almost entirely off the screen and I have to drag it over to edit it. I understand (sort of) why this is happening, since I last had it open in a different monitor. What I'd like to do is reset the window positions in Xcode so the edit windows show up completely on the laptop monitor. Any ideas on how to do this?
I'd even be willing to nuke entries out of the preferences (or set up an applescript to do it) but the xcode plist is inscrutable to me.
Right click the project in finder, select show package contents, and delete the two username.* files. Its not automated... but it works.
Additionally if your using some kind of version control system you probably want to add username.* to your ignore pattern.

Resources