Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6119983
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:36:57+00:00 2026-05-23T15:36:57+00:00

In PHPStorm , WebStorm , and MPS , is there a setting or way

  • 0

In PHPStorm, WebStorm, and MPS, is there a setting or way to get the “peek” functionality to show two lines on a control statement (that is, IF or FOR or WHILE) when using Allman/BSD style coding (braces on a separate line)?

When the cursor is behind the closing brace, the “peek” functionality works (showing the opening brace), but it only shows one line, the actual line of the opening brace, which is almost worthless. Note this functionality works perfectly with a CLASS, showing two lines, but not with a CONTROL statement or METHOD.

See screenshots below of (1) an IF statement and (2) a CLASS definition.

I have my code style appropriately specified under settings/code style, but this doesn’t seem to be helping. This problem is very annoying!

Peeking at IF statement
Peeking at class definition



UPDATE: This works GREAT with JavaScript files… Why can’t we get the same behavior with PHP files?

Example of this is working great with a JavaScript file:

Enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:36:58+00:00Added an answer on May 23, 2026 at 3:36 pm

    This functionality was not implemented for PHP (it has to be implemented for each file type/language separately). It was fixed and is available in PhpStorm 2.1.1 or newer.

    Corresponding ticket: http://youtrack.jetbrains.net/issue/WI-3667?projectKey=WI

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using PHPStorm 3.0: Is there a way to tame auto-completion in css files? I've
Is there a way to open up a directory in PHPStorm or an equivalent
Is there a way to disable the Ctrl +scroll text zoom feature in NetBeans?
How to make phpstorm display line numbers by default? Couldn't find that option. It's
my question is not about RegEx in general but about PhpStorm's search-replace-functionality with RegEx
Is there any way to use Fn or super (windows) to define new keyboard
I have PHPStorm 2.1.5. It could be that you encountered this, if so please
I use phpstorm as my IDE, it has git version control integration built in
Is there an IDE that shows live variable data? For example: $myVar = 5;
I'm trying out PhpStorm, but I'm having problem with the autocomplete of Request object

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.