How to move caret to end of file without End key - phpstorm

I'm using a Mac, and I want to move the cursor to the last line of file without using Home, End, or Page Down keys.
Any idea?
I've tried "scroll to bottom" keymap but that only moves the scroll, not the caret.

There's a reserved Editor Action for this and it's named Move Caret to Text End. You can find this in the Preferences window (Preferences -> Keymap -> Editor Actions). The counterpart of this action is Move Caret to Text Bottom, in case anyone is interested.
In Mac, native text editors come with shortcuts cmd+up and cmd+down out of the box to easily jump to the top or the bottom of the page (along with the caret). You'd mostly want to adopt the same shortcuts on your PHPStorm IDE to make page navigation more seamless.

Try ⌘A, →.
But it's better to assign shortcut as #LazyOne suggested.

Related

VSCode: Stop selecting the white space when tabbing a shortcut

In IntelliJ when you tab on a shortcut, the space after the shortcut is not selected but when you do that in VSCode it is, how can I change it?
I solved it, go to settings and turn off "Editor: Insert Spaces"

PhpStorm red lines in the code

Suddenly PhpStorm looks like that:
I deleted and re-installed it. However that didn't change anything.
Type CtrlAltS to open the Settings window. Expand the Editor tree in the left panel. Expand Color Scheme, then click in General. In the right panel, click in Line coverage and uncheck Background checkbox on the right side.
You can also type a shortcut CtrlShiftA to open the actions window and type line coverage.

Hotkey to jump past closing brackets in JetBrains PhpStorm

Right now I'm just using PhpStorm to work with some HTML, and it's great in that it auto indents and automatically closes out HTML tags.
The only problem is this feature doesn't really save me any time because I then have to use my mouse or arrow keys to navigate past the closing tag when I reach it. For example I type <p> and it closes it out <p></p> with my cursor in between, but when I'm done I either have to manually navigate past the closing bracket or use Shift+Enter to jump down to the next line (which isn't always what I want to do).
Is there a command that will just jump me to the end of the next closing bracket, or is there a way of setting this up? I've googled it but haven't been able to find anything.
I've googled it but haven't been able to find anything.
Well... Help | Default Keymap Reference has the most needed shortcuts and actions listed and the one you need is there.
In any case:
Ctrl + ] -- Navigate to code block end -- will jump to the closest closing tag (in HTML) or brace/closing keyword (CSS, PHP).
Ctrl + [ will do the opposite -- jump to the opening tag.
There are few other actions that can help here but may not have any shortcuts assigned by default -- check them in Settings (Preferences on Mac) | Appearance & Behaviour | Keymap (it has search by action name and even by already assigned shortcuts).
Another alternative (or better say -- advanced navigation) would be using AceJump pluign (you have to see it in action -- you either like or hate it).. or even Vim mode navigation (via IdeaVim plugin).
The simplest way to go about this is to press Command + -> (command+right arrow key) when your cursor is inside the brackets, and this will bring you behind the last bracket.
At least, I believe this is what you're asking.
hi, use mac os for: cmd + option + ]

Find and Replace in Google Script Editor

I have questions about the Google Apps Script Editor.
When using the Find and Replace menu in the script editor, how can you make your search case sensitive? There's no "match case" option. Is there some way with regular expressions?
I'm working on a rather small screen and since the search is normally not case sensitive I can't see when it's locating what I'm looking for.
I was also wondering if the Find/Replace popup is supposed to be moveable since I just end up highlighting text if I try to drag it. The "Find" popup in the Google Docs Spreadsheet app can be moved, I would expect this one to behave similarly.
You can drag the find box right out of the way by clicking within the single line phrase "Find and replace" and then dragging away from the central area.
Unfortunately you can't use regex (AFAIK).
There is no case-sensitive search in the editor, but it's been requested. Visit and star Issue 1593.
The search window is movable, but you need to grab something inside the dialog container. I usually grab it by the caption, "Find and replace".
I prefer to not drag the window out of the way but permanently (at least while working that day) to the far top right corner with all of the wasted padding removed.
-Right-click on the window to open the menu, choose "inspect"
-In the window that opens, look up the domain text until you see
<div class="maestro-dialog" role="dialog"
-Click on that line in the DevTools
-On the right side, change the Style settings under .maestro-dialog to be:
*uncheck the padding line
ADD
right: 20px!important;
width: 440px!important;
left: unset!important;
top: 0px!important;
The box moves and will stay there every time you open the search....so long as you don't close the window with the DevTools (of course, you can hide it, but don't click the top-right "x")

Auto-convert tab to 4 spaces in TextWrangler?

Is there a preference in Textwrangler to redefine a tab as 4 spaces? In Vim this is set expandtab in the vimrc, but I don't know how to set it in TW besides clicking "Detab" when I'm done editing the document.
Thanks,
Kevin
Go to "Preferences" -> "Editor Defaults" -> "Auto-expand tabs," and then set tabs to 4 spaces. Then restart TextWrangler for changes to take place.
For docs that already exist you have to hit the "Text Options" button in the top of the editor window of the open document. In older versions, it's the button that looks like a "T" with a light switch next to it; with newer versions, it's a gear "⚙" icon. In that drop down there is the "auto-expand tabs" as well.
in version 4.5.5, there is 'Text -> Detab...', which pops up a requester for how many space per tab, preset for 4.
Go to Edit -> Text Options and tick Auto-expand tabs. This will make all the new tabs to change to spaces.
To change all current tabs to spaces as well, go to Text -> Detab and hit Detab.
Hope that helps!
For Mac, another easy way to check and enable "Auto-expand tabs" is to hit the gear button on top left.
You can also use "Normalize Options..." to set the text options of an already-open document to whatever you have set in your Preferences. This is useful for dealing with pre-existing code.
There are two places you need to set the settings for this to work. One is for previously opened documents, and the other for all documents to be opened or created in the future.
The Settings
set "Auto-expand tabs" to checked
set "Tab width" to 4
Previously Opened Documents
Click the "Text Options" button. It is in the top left of the editor window directly above the document view of the open document. In newer versions it's a gear "⚙" icon. And in older versions it is a "T" and light switch.
New Documents
go to preferences menu: BBEdit -> Preferences
choose "Editor Defaults" from the side-bar in Preferences