This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 188229 - Add autocompletion pairs for backticks
Summary: Add autocompletion pairs for backticks
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.0.1
Hardware: All All
: P2 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-30 08:28 UTC by Raazy
Modified: 2017-02-20 09:59 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Current autocomplete (30.79 KB, image/png)
2017-02-20 09:59 UTC, Xenos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Raazy 2010-06-30 08:28:06 UTC
Please add configurable behavior for backticks ` (Grave Accent).

Currently this functionality is for " (Quotation Mark) and  ' (Apostrophe) only.

These backticks is used within php strings for mysql column and table names:
Example:
$sql = "SELECT `id`, `date` FROM `table` WHERE `id` = 1";

Using "backticks" on database and column names avoids any issues where the entity name is a reserved word.
Comment 1 Filip Zamboj 2010-09-15 12:32:17 UTC
batch reassigning
Comment 2 Xenos 2017-02-20 09:59:25 UTC
Created attachment 163666 [details]
Current autocomplete

The current autocomplete in NB8.2 seems to fill the required feature. 

You will need to enter your two backticks first ``|,
and then ctrl+space between it `|`
to get the column autocomplete name.

Otherwise, if you enter one backtick and ctrl+space right after it `|
to get autocomplete, you will also get the table.column suggestions, since `table`.`column` is also used.