IntelliJ on macOS, how do I jump to previously defined bookmark? - macos

On IntelliJ mac, is there a way to add a bookmark on the code where we can jump to that piece of code with a shortcut
I can add a bookmark by using F11 or command F11 and give it a number but is there then a shortcut I can use say if i'm somewhere else in that file but want to jump to the bookmark?

SHIFT-F11 is the thing you are looking for. Alternatively:
Navigate/Bookmarks/Show Bookmarks

Related

PyCharm Delete Whole Line with cursor moving up

A very specific question, for use on Mac OS:
In VSCode, it's very easy to simply hold ⌘ Command and hit ⌫ Delete for however many whole lines I want to delete and the cursor will keep deleting upward.
However, running PyCharm, it's not available, and I'm having trouble mapping the exact feature.
Going to Preferences -> Keymap -> Editor Actions allows you to map "Delete Line," but using this will just delete downward. Is there a way to mimic the feature of being able to hold down ⌘ Command and just ⌫ Delete lines upward?
To find the shortcut on your setup open up the "Search Everywhere" box with one of the following:
Double ⇧ Shift
⌘ Command+P
⌘ Command+⇧ Shift+P (opens directly on Actions tab)
Then go to the "Actions" tab and search for the shortcut you are looking for, in this case "Delete Line":
Then it shows the shortcut (in my case ⌃ Control+⇧ Shift+K)
In the Jetbrains documentation it does not show up anything to remove a whole line (or at least, I am missing it out).
I know it is not the same, as what you do in VScode is much faster, but you can always shift+home(gets you the whole line if you are at the end of the line)+delete.
I do not think there is another way from jetbrain's doc.
EDIT:
I think I found it by cassualty: R shift+ del.
EDIT2: Just found out that R shift+ del actually cuts (like ctrl+ x).
I know that the post is a bit old but I think it worths to post the 'actual' solution to this issue.
Basically, when you try to delete line in PyCharm for Mac, the IDE is deleting the caret (according to the documentation). Although, IdeaVim plug-in is making your life even more difficult if you don't know how to use it. I don't have experience either.
Disabling IdeaVim plug-in will solve the problem. The IDE will ask you to restart it in order to apply the new settings. After that you can select whatever you want in your code and just hit the backspace button on your Mac to delete. And, yes, all these issues with the key shortcuts are caused by the IdeaVim.
The IdeaVim extension can be disabled from the PyCharm Preferences.

Xcode Go to next line hotkey (like intellij's shift enter)

I've been programming on a Windows machine for quite a while using Jet Brains IDEs (IntelliJ, Android Studio, WebStorm). I just bought a Macbook and I'm trying to use Xcode to develop on it. My most used hotkey by far is Shift-Enter to start a new line underneath the line where the cursor is. Without the shortcut, I have to CMD-rightarrow, add a semicolon if needed, and then press enter. Is there a shortcut like this in Xcode? If not and thousands of developers use xcode, am I just lazy and have a bad habit? Is there a easier way to do this?
Thanks a bunch
Such a hotkey is not available in Xcode. Since you are new to OS X, I should tell you that emacs shortcuts are available in Xcode and throughout the OS. So, for example, in your case the quickest way to get what you want would be Ctrl-E (move to end of line) followed by enter. You can switch your caps lock and control key easily in System Preferences to make this easier. Check this link for a full list of these bindings. I have found them supremely useful.
Try this:
Copy '/Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources/IDETextKeyBindingSet.plist' to desktop.
Add following contents into the .plist file:
<key>My Custom Actions</key>
<dict>
<key>Insert Line Below</key>
<string>moveToEndOfLine:, insertNewline:</string>
<key>Insert Line Above</key>
<string>moveUp:, moveToEndOfLine:, insertNewline:</string>
</dict>
Copy back the modified file.
sudo cp ~/Desktop/IDETextKeyBindingSet.plist /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources/IDETextKeyBindingSet.plist
Restart the Xcode and perform key binding.

Setting a conditional breakpoint in Firebug for Mac

I can't seem to set a conditional breakpoint in Firebug. Every Google search I've done indicates that I should be able to Right-click the line of code in question, at which point a "bubble" will appear asking me for the condition on which the break should be executed. Right clicking does in fact toggle the breakpoint's existence, but no bubble appears. How/where do I enter my condition?
Of course Mac mouses don't have a "right-click" button but assumed I could simulate right-click using Control. I've also tried Alt and Command to no avail.
I am running on Mac/Yosemite.
Thanks.
To be precise you need to right-click the breakpoint column or right-click inside the line and then choose Edit Breakpoint Condition... from the context menu. If you do so the condition editor should appear, which looks like this on Windows (on Mac it's black):
There is currently (Firebug 2.0.x) no keyboard shortcut for this action, so right-clicking is not working for you, it might be a bug in Firebug. In that case you should go through the steps described at Firebug's first aid page and file a bug if the steps don't help you.

How to remove or disable the breakpoint field in xcode?

When I want to close or open a function in xcode I always accidentally add a breakpoint, that is very annoying so I wonder if there is a way to remove/disable it. I have searched for a solution but they are just people asking how to remove a breakpoint. I have checked through all the settings but not found anything. Or maybe there is an option to change how to add breakpoints like double click to add as in eclipse?
Here is an image of what Im talking about:
I don't see any thing in ~/Library/Preferences/com.apple.Xcode.plist to help. But there are always the keyboard shortcuts for Fold and Unfold

f10 does not step through loops

I am stepping through some code in VS2010. I noticed this icon in the side bar:
And since the apprearance of that icon, I am unable to use F10 to loop though code.
I tried changing many settings but nothing helps. I changed project properties, reset VS to default, but to no avail.
Im sure is a simple answer, but I am just not able to figure it.
UPDATE: Only happens if loop contains TRACE macro
If you want to remove bookmarks, Check in tools for "Clear Bookmarks" or here is the shortcut to remove all bookmarks "ctrl+k then ctrl+l"

Resources