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).
Related
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)
Is there a way to navigate up and down the highlights as in the screenshot?
I read the article here: https://www.jetbrains.com/help/phpstorm/navigating-through-the-source-code.html but couldn't find what I'm looking for
Basic usage is I just want to sprinkle a bunch of highlights around the code and be able to jump between them using a shortcut.
I know that an alternative would be to use the favorites, but I want to see if it can be done using highlights.
I'm on a Mac.
I just want to sprinkle a bunch of highlights around the code and be able to jump between them using a shortcut.
Navigate > Back and Navigate > Forward should work ideally in that case.
According to your comment above, you're using these breakpoints as a kind of visible bookmark within your code. However, IntelliJ does have a Bookmarks feature.
I would therefore suggest to simply alter the way they appear so they stick out more:
Go to File | Settings | Editor | Color Scheme | General
On the right pane, expand/select Editor | Bookmarks
Adjust the background and/or foreground colors on the right (and more if needed)
Here's an example with funky bookmarks (pardon my light theme):
You can then navigate between them using:
Navigate | Bookmarks | Previous Bookmark
Navigate | Bookmarks | Next Bookmark
Let me explain the situation.
I need to copy a lot of instances of a text inside a project of PhpStorm. So, I perform a 'Find in Path' action and a floating window appears with the matching results.
Now my problem is that after copying once from the floating window, if I click on another app window, then PhpStorm's main window/PhpStorm itself go to background, then if I want to copy text from the floating window again, I can not use any keyboard shortcut, I can not modify any line in the floating window because PhpStorm stays in background/inactive-mode even if I click on its floating window.
If I click anywhere in the PhpStorm except the main top-white bar of PhpStorm, then the floating window disappear, which causes me to perform the search again.
It is reducing my productivity a lot. Is there any way to make the PhpStorm active or bring it foreground when clicking its floated search window?
Please see the screenshot:
Is there any way to make the PhpStorm active or bring it foreground when clicking its floated search window?
You are approaching the problem from the a bit wrong angle. There is a better solution than fighting the focus/foreground state.
There is a button in the bottom right corner of "Find in Path" window ("Open in Find" it says on your screenshot) -- click it and it will open search results in traditional / standard Search Results tool window (with grouping by folders/files, preview area etc)... so no floating and no auto closing on clicking somewhere.
P.S. Lots of people forgetting that results shown in this new "Find in Path" dialog/popup is still just a preview (TOP 100 matches only). Super functional (you can edit and stuff) but still preview only. This mainly applies to those who remember the way how this dialog (back then it was dialog window) looked before redesign (now it's more of a popup).
Because of the way how it is all presented now (results occupy majority of the popup space) people somehow automatically forgetting about "traditional" way of searching (clicking actual "Find" button to get search working) and focusing only on what they see on a screen right now.
This new "Find in Path" dialog/popup adds a lot of convenience for sure (you typed search text and results are straight away before your eyes). At the same time quite often you may see/hear "it does not show me all results" frustrated comments (as it shows top 100 .. and a single file may have 100+ hits in some cases) and alike. JetBrains needs to improve UX a bit in this area for sure.
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+}
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).