In the c9 editor is there a way to toggle/collapse the work-space file tree, preferably by using a keyboard shortcut?
I know that this is possible for a terminal console but was hoping the same for the file tree.
For collapse:
Click on the folder that you want to collapse in the Tree:
Then Alt + 0:
Related
I want to copy text, either -
the output of the previous command, OR
any text present in the bash window,
simply by navigating the cursor and selecting the text using only the keyboard. I do not want to use the mouse at all.
Is there any way to do this?
If impossible, is there any way to do this with minimal use of the mouse?
Example use case - copying the name of a branch, or a commit ID (from a previous git log or git branch) and then pasting it in a git command for switching to it.
You can check the shortcut by
with keys: > options > keys > shortcuts
or
with mouse > options > mouse > mouse functions
The solution that worked is for:
desktop keyboard: [shift] + [insert] keys to paste
laptop keyboard: [shift] + [0] keys to paste
NB: For laptops, the 0 Key at the bottom of the number pad on the upper-right corner of your keyboard will function as an Insert Key when Num Lock is turned off. That is why it is labeled with both 0 and Ins on the key itself.
I discovered an answer on another forum. One just has to enable to Ctrl + Shift + Letter keys from the bash terminal's options. One can then use Ctrl + Shift + C to copy and Ctrl + Shift + V to paste.
You can copy but can't paste text or number on Windows.
Just copy with shortcut ctrl + v. After copying, press right mouse click to paste wherever you want.
Paste will reset when press left mouse button.
I know I can use CTRL + F to search selection, current documet, all open documents etc. But is there a way to work witch search bar only with keyboard? For example to switch between searching option, expand the search bar etc.?
not sure if you want to have a single KB shortcut for every type of search (current document, all open docs, etc). But after pressing Ctrl+F you can press Tab a few times until you navigate to the search scope DDL and then press ↓ or ↑ to select the needed option.
Will it be easier for you than using the mouse? :)
I am looking for a shortcut to move the current tab left and right through the tab list. Note that I don't want to switch to the left or right tab with the Cmd+{, Cmd+} shortcuts, but to move the tab.
try iterm2, http://iterm2.com/#/section/home
command + left or right arrow to switch tabs
command + shift + left or right to move tabs
According to Terminal -> Preference -> General,
Command + Ordinal can be used to switch tabs, (Ordinal between 1 to 9)
e.g.: Command + 1: switch to the first tab (left-most tab).
you can add a shortcut to have command+left/right arrow go to previous/next tab:
No, it is not possible to move tabs using keyboard on Terminal app.
I would need to drag them by cursor or try iTerm2 instead.
I don't think you can, and it doesn't appear on any shortcut list i have seen for any browser or application :/
however there seems to be a plugin of sorts for Chrome which does this:
plugin link that might work.
Is there a way to search through all Xcode project files? I know that I can find some text inside file with finder, but finding something with Xcode will be very helpful. When I press cmd+f I can only find or find and replace in current display file.
Use cmd + shift + f for complete Xcode search.
To do it simply from the UI, with a click
By default, this will be searching through the entire project searching for any files containing the specific string you entered.
From this point, you can start doing more stuffs like replace all, etc, like this
On the left hand side of the editor you have a magnifying glass. There's a search box there. That should do the trick. (it's called the search navigator)
cmd + shift + f opens it too.
cmd + shift + f
then press return key of you keyboard.
Use Command + 3 a minimum keyboard shortcut
or Command + Shift + f
In find use: Find > Text > Containing
Right Click on any text and select 'Find Selected Text in Workspace'
In my experience, cmd + shift + f requires cmd + c before hand to populate the search term. So, my go to search for text in all files is to do the above.
I would like to search for all .xib files in a particular xcode project but I don't know how to do this on xcode. Also, suppose I want to search for a particular file, e.g. Test.h, how do I do this? I know how to do this using linux, but that gives the structure of the filesystem, and not of the xcode project.
In xcode on left pane at the bottom there is a search field, just type xib, it should list all xib files. Same with other type of searches as well.
Place your cursor in this "Filter" with a keyboard shortcut:
⌥ +⌘ + J , or by choosing from the File Menu Edit > Filter > Filter in Navigator
Edit:
You can even use wildcards. For e.g., *m*1.x* will filter SampleXib1.xib, It's also incase-sensitive.
To search a file/class ⌘ + ⇧ + O (Command + Shift + O)
To See the current opened file in Project Navigator ⌘ + ⇧ + J
To go to line number in a file use ⌘ + L
Note: This partially answers the question, to see all .xib you can search it in project navigator as mentioned by one of the answers. But I think these shortcuts are awesome!
Type your search keyword in the text field at the very bottom of the Project Navigator pane on the left.