I have reinstalled PHPStorm and adjusted the wrapping and right margin but seems it's not working what's it I'm missing?
You need to fix your Soft Wrap settings. From what I see from your first screenshot you have made an error in the list of "wrap by default" extensions: they should be separated by the semicolon ; but I see a comma , there: ... ; *.adoc, *.php.
P.S. If you do not care about specific extensions / or to enable Soft Wraps by default for ALL files, just enter * in that field.
Side note: You can always manually enable soft warping for the current file via Main Menu | View | Active Editor | Soft Wrap (should also be accessible via gutter context menu: the area where line numbers are)
Related
How can I configure PhpStorm to autocomplete highlighted entry on keys like space, ()[],; and other relevant keys? Right now autocompletion only works with keys like Enter, Tab, and dash (-).
I know there is an option Editor > General > Code Completion > "Insert selected suggestion by pressing space, dot, or other context-dependent keys". But it seems like toggling it does not have the effect I want. So far I found out it only enables autocompletion additionally by dash (-), but not space or brackets.
For example, if I have this view:
Wanted behaviour after I press space (highlighted entry insertion):
Current behaviour after I press space (it just prints space):
I think what I want is default behavior Visual Studio and I really like it, enables faster typing and less Enter presses. But can't figure out how to configure PhpStorm the same way.
Is there a way to do this? I'd much rather have the code wrap and say within 80-100 character line lengths. The scroll over every time I swipe is driving me crazy!
There is "soft wraps" functionality in IDE -- it does just that -- it virtually (on a screen only) breaks the line into multiple to show whole line without the need for horizontal scrolling.
It can be enabled at:
For all files: Settings/Preferences | Editor | General |Soft-wrap these files
For current file only: View | Active Editor | Use Soft Wraps
These options are also available via gutter context menu (the area where the line numbers are). If you have customized that context menu long time ago ... then they may not be there (as they were added there straight away).
I have one line in a html file containing a base64 representation of an image. This line spans thousands of lines in the editor, which is a huge hassle when always scrolling past it.
Is there a good way in ST3 of hiding this line?
Select the text you want to hide, then from the Edit menu -> Code Folding -> Fold.
Note that folding is not stored in the session, and reopening the file or ST will display the text unfolded again.
You could also take a look at plugins designed to help you with this: https://packagecontrol.io/packages/Base64%20Fold
you can simply press ctrl+shift+{ and to revert back just press ctrl+shift+}
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 + ]
When editing file that is under version control in right side scroller PhpStorm have small colored info about which lines have been added, modified, deleted.
PhpStorm version: 6.0.2
This small info about line changes is too small for me.
How can I make it bigger or change color so I can spot it better?
Well ... the colors can be configured at Settings | Editor | Colors & Fonts | General
Added lines
Modified lines
But the screenshot you are showing .. it looks more like Difference Viewer rather than Editor itself (since in Editor such info is shown in editor gutter area (next to line numbers) which is on the left side -- opposite side to where scrollbar is).
Therefore you may be looking for Settings | Editor | Colors & Fonts | Diff instead (screenshot is too small for me to tell anything more).