I have the plugin Sublimerge installed in Sublime Text 3. In order to compare two files Sublimerge opens a new window (but without any menu). That is fine since the original Sublime window is still there.
Unfortunately the diff-window was the last one I closed and when I restart Sublime it opens the diff-view without menu.
Question is: How can I restore the default Sublime view?
To make my problem visible, this is what it looks like now:
Edit: Sublime is running on Linux Mint and is set to a German keyboard.
I had the same issue and in my case pressing ctrl+alt+p and selecting last project solved it.
If you are referring to the sidebar, you press super+k,super+b to toggle it on/off.
To close the sublimerge diff window, just press super+w.
edit after reading your comment/image:
To go back to a single pane view, press super+ctrl+1.
Ultimately, you can access the FileDiffs menu via the command palette (ctrl+shift+p) and type in menu.
Related
When navigating using up and down arrows in the navigation panel on Xcode I want to go to the file currently highlighted. If I press enter I just edit the name of the file.
From this, to actually navigating the file itself. Using only the keyboard.
Here are some possible solutions :
Press control-` (backquote) to navigate to the next editor (which is probably the main editor).
Press Command-J to get a proposal (which is probably the main editor) and press Enter to confirm
Press command-1 to come back to the navigator
Found the solution. If you go to Xcode -> Preferences -> Key bindings and search for "Focus". A command like "Control + `" will work.
When I click the sublime text icon (to start/open it) I would like it to default to either a specific folder, or the last folder that was open. This SO question was helpful:
Set Sublime Text's default directory when opened
However I have set hot_exit, remember_open_files, and close_windows_when_empty and none of this seems to work for me.
If I actually 'quit' sublime text down in the dock, then it will open the last project I had open (in addition to another blank window).
Any way to make it remember my project without having to quit the app?
I set hot_fix, remember_open_files, and close_windows_when_empty as described in Set Sublime Text's default directory when opened, and this works on macOS IF you 'quit' sublime rather than closing the app using the 'x' in the upper right hand corner of the app. So for me, when I want to close sublime I go down in the doc and right click on sublime and choose 'quit', and when I open it again, the last project I had open will be displayed.
Another quick option is to use command-q to quit the app.
I am very new to this, and my c9 terminal seems to be frozen. The cursor is blinking, but when I try to enter text, nothing shows up. I have tried exiting my workspace and reloading and it still will not work.
Opening a new terminal tab with the View menu or pressing ALT-T is the best bet to get a working terminal back (as mentioned in the comment above)... you may also find that having selected the broken terminal though, you can't click things in your menus anymore. I've found that pressing the Preview button and then closing it, seems to get the UI to be responsive again.
Supports official response is that you should perform workspace reset using ?reset=1 after your workspace url (which doesn't last or work very well in my experience).
This can happen after pressing ctrl-s, pressing ctrl-q should restore it. See https://unix.stackexchange.com/a/12108/41174 for explanation.
I tried ALT-T and ?reset=1. Nothing helped in my case.
I managed to bring my frozen terminal back to life by closing its tab. I ignored the warning that all processes would stop. Then I clicked on the rightmost tab with a plus sign. In the menu I selected "New Terminal".
You can click at the top right where CPU usage is shown. Then click on "Restart" when the menu appears.
In Xcode, I am big fan of the assitant editor that shows me the corresponding .h or .m for the file that I am editing.
Is there a shortcut that allows me to swap focus between this two windows? I frequently switch between the two and using the mouse every time is annoying.
New answer:
Move Focus To Editor — commandj followed by ←/↑/↓/→ and return
This goes nicely together with commandshiftj which is Reveal in Project Navigator.
Old answer:
Use optioncommand` keyboard shortcut.
It can be remapped in Preferences - Keyboard Bindings - Move Focus To Next Area.
Edit: Removed XVim recommendation.
#Oneiros: Not quite what the OP was asking for..
I don't know of a 'short' shortcut but there's Cmd-J showing a popup where you can choose what to focus.
I made this to help answer another question... Does it help?
Xcode 8+
This is the easiest option:
^` - Move Focus to Next Editor
When using multiple assistant editors, ⇧^` moves focus to previous editor.
Xcode 4+
⌥⌘` - Move Focus to Next Area
⇧⌥⌘` - Move Focus to Previous Area
Using this option you can switch between Project Navigator (left pane), Primary Editor, Assistant Editors, Utility Area (right pane), Debug Area, etc.
⌘J - Move Focus to Editor...
Using this option you can choose where to move the focus using graphical navigation chooser.
For Xcode 4.4:
Use Cmd+Option+` (left to number 1) to Move Focus to Next Area, and use Cmd+Option+Shift+` to Move Focus to Previous Area
For Xcode 4.3:
If you only have the Editor and Assistant open, use Cmd+Option+. to switch between them (Navigator>Move Focus to next area)
Also, if you want to open a different file in the right pane, like the .xib or any other, press
Command ⌘shift ⇧o
The open quickly window will appear, search the file, use capital letters to filter through camel case notation, then press
Alt ⌥enter ↵
The file will be opened in the assistant window
Switching between .h and .m:
Control ^Command ⌘Up Arrow ↑
You can do this:
Assume you have Standart(S) and Assistance(A) editor opened and you want swap them.
1) Double tap with holded Alt to line in navigation bar of S editor with file name (look screenshot). This file will open in A editor.
2) In A editor tap Go Back and do 1. File from A editor will be opened in S editor.
3) In A editor tap Go Forward.
DONE!
When coding in Xcode, I double-click a file in the "Groups and files" list, and it opens a new editor window. I have several of these open at once.
Until today.
Today, when I double-click a file in the list, it opens the file in the last editor window I was using, meaning I can only have one editor window up at any one time.
I guess I've switched some option somewhere by mistake. How do I get it back to the way I like it?
I'm using Xcode 3.2.5
In the top right of the editing window is an icon that says "grouped", perhaps you clicked on it by accident.
Click on it so it says "ungrouped", and you'll be back to opening multiple windows.
perhaps preferences>General>Open Counterpart in same Editor