NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Code completion & wiping out variables


Joined: 24 Oct 2006
Posts: 98
Location: Melbourne, AU
Reply with quote
Using build 4627.

Say I have a line of code...
Code:

$name = $db_name;

I want to addslashes before it, so I start adding that just before the $db_name variable, and as expected, the ever helpful code completion pops up with the addslashes() suggestion.

That's great however, pressing enter to accept the suggestion wipes out the $db_name variable.

Is this a setting thing, or a bug?
View user's profileFind all posts by LatsSend private message


Joined: 23 Aug 2005
Posts: 53
Reply with quote
it's a settings thing.
Quote:
Probably, you're need to turn off tools->settings->editor settings->Clear when inserting template. It affects both inserting code templates and inserting code completion.
View user's profileFind all posts by stappelSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Right, uncheck Tools->Settings->Editor settings->Clear when inserting template.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 24 Oct 2006
Posts: 98
Location: Melbourne, AU
Reply with quote
Ahhh, thank you for clearing that up for a newbie Smile
View user's profileFind all posts by LatsSend private message
Code completion & wiping out variables
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic