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

  • Home
  • SEARCH
  • 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 7966979
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T06:34:41+00:00 2026-06-04T06:34:41+00:00

I like to have a space after function names, arrays, that sort of thing,

  • 0

I like to have a space after function names, arrays, that sort of thing, so a function declaration would look like:

function myfunction ($param)
{
    $a = array ('a', 'b');
    callfunction ($a);
}

And although I have set the style guide in Netbeans to correspond to this whenever it does autocomplete/suggestions it always misses out the space and gives me something like callfunction($a) even though when I go source->format (alt+shift+f) it then formats the code properly.

Any way to get autocomplete to add the space?

UPDATE:

Just to make things clear, I have set up Netbeans to correspond to my coding preferences, as indicated by the ability to use auto format. The problem is auto complete (or whatever the hint thing is called) does not respect these settings, leading to the missing space.

  • 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-06-04T06:34:42+00:00Added an answer on June 4, 2026 at 6:34 am

    Go in Tools->Options.

    In pane Editor -> choose pane Formatting.

    In language choose PHP and in Category choose Spaces.

    Check all in Before Keywords, Before Parenthesis, Before left braces, and you can choose other properties if you want.

    Then when you will use auto-complete or Alt+Shift+F to reformat it will put the spaces correctly.

    EDIT :

    In the OP case it seems an other configuration prevents the auto-complete to works.

    This is my config :

    enter image description here

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

Sidebar

Related Questions

I would like to have some space between the same line.. I know there
I have a space in which I would like certain elements (represented here by
I'd like to have a notification that informs me when my hard disk space
So in my project i would like have a nice treeview that has images.
I have pictures that I would like to have expand across an entire page
I have some code that is basically 5 print statements that i would like
I have a table like: I have to order the rows in function of
I have a C++ project that have like 15+ external libraries installed with a
I have a list of elements I would like to be able to have
I have a function that essentially reads values in from a vector of doubles,

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.