NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Turn off automatic quote closing?
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    NetBeans Forums -> PHP Users
View previous topic :: View next topic  
Author Message
schkovich



Joined: 17 Mar 2010
Posts: 487
Location: Swieqi, Malta

PostPosted: Fri Apr 16, 2010 7:05 pm    Post subject: Reply with quote

daprezjer wrote:
Say you're typing something simple, like a src attribute, for HTML.

You start with:

<img src=

as soon as you hit the quote, it makes it into a double quote and puts the cursor at THE END of the line, like so, where the cursor is represented by a pipe here:

<img src=""|


I don't know which version of NetBeans are you using but in the todays development build (201004160201) it does not work like that, on contrary it is like you would like it to work. Smile

type <img | invoke code completion select src and you will have <img src="|" or if you like more typing then type <img src= and as soon as you hit = you will have <img src="|"
Back to top
daprezjer



Joined: 16 Apr 2010
Posts: 5

PostPosted: Fri Apr 16, 2010 7:27 pm    Post subject: Reply with quote

Ah, I see what's going on. And it's actually very helpful. I think the problem for people is that it's not obvious how it works, because it works differently in other editors.

In some other code editors where there's auto completion, you have to type the quote first before auto completion happens. That way it knows whether to use single or double quotes (I've seen arguments on here about whether to enable that option as well, but that's for other people...I like double quotes Wink

So, being familiar with these other programs, I was typing exactly the following, thinking it would bring up the ending quote:

<img src="

Doing so has the following effect:
- write <img src=
- automatically makes <img src="|" (both quotes are inputted automatically with the cursor in between as soon as the equals sign is entered)
- typing the final " overwrites the final " (another nice feature, btw, so that you don't have to forward arrow out of the tag)
leaving you with <img src=""|

Hopefully this explanation will help others out. So, this autocomplete basically just removes the need to type one quote. To get <img src="here", you'd literally type:

<img src=here"

Note that this still means that you have to remember NOT to type that first quote, which is what everyone's used to doing. So it may just take a second to get used to. I'd still suggest then, as many have here, making it an option. Any auto complete should be so.
Back to top
Pet
Posted via mailing list.





PostPosted: Sun Apr 18, 2010 6:01 pm    Post subject: Turn off automatic quote closing? Reply with quote

On Fri, Apr 16, 2010 at 8:53 PM, daprezjer <address-removed> wrote:
Quote:
Here's the basic problem (also noted by amites at one point).

Say you're typing something simple, like a src attribute, for HTML.

You start with:

<img src=

as soon as you hit the quote, it makes it into a double quote and puts the cursor at THE END of the line, like so, where the cursor is represented by a pipe here:


In dev builds cursor is BETWEEN double quotes. So, be patient until
6.9 is out or use dev build.

Quote:

<img src=""|

So the cursor is now beyond where you want to type in the actual attribute.
Back to top
Marek Fukala
Posted via mailing list.





PostPosted: Tue Apr 20, 2010 4:03 pm    Post subject: Turn off automatic quote closing? Reply with quote

There's an options dialog in netbeans 6.9 for html files where you can
configure the html autocomplete behaviour if you do not like it.

https://netbeans.org/bugzilla/show_bug.cgi?id=145791

Just go to the Preferences -Editor -Code Completion and select HTML in
the combobox.

-marek

daprezjer wrote:
Quote:
Ah, I see what's going on. And it's actually very helpful. I think the problem for people is that it's not obvious how it works, because it works differently in other editors.

In some other code editors where there's auto completion, you have to type the quote first before auto completion happens. That way it knows whether to use single or double quotes (I've seen arguments on here about whether to enable that option as well, but that's for other people...I like double quotes ;)

So, being familiar with these other programs, I was typing exactly the following, thinking it would bring up the ending quote:

<img src="

Doing so has the following effect:
- write <img src=
- automatically makes <img src="|"
- typing the final " overwrites the final " (another nice feature, btw, so that you don't have to forward arrow out of the tag)
leaving you with <img src=""|

Hopefully this explanation will help others out. So, it basically just removes the need to type one quote. To get <img src="here", you'd literally type:

<img src=here"




Back to top
daprezjer



Joined: 16 Apr 2010
Posts: 5

PostPosted: Tue Apr 20, 2010 6:10 pm    Post subject: Reply with quote

Yup, the development release does have the option. Thanks! It does really help, because when you're editing other people's code, as a previous poster noted, sometimes it adds extra quotations, or doesn't add them at all. Gets very confusing.
Back to top
Marek Fukala
Posted via mailing list.





PostPosted: Tue Apr 20, 2010 8:04 pm    Post subject: Turn off automatic quote closing? Reply with quote

Maybe you've encountered
http://netbeans.org/bugzilla/show_bug.cgi?id=184156 ?

I'll try to fix it soon.

I've already deleted the older messages and cannot recall the exact case :-(

-marek

daprezjer wrote:
Quote:
Yup, the development release does have the option. Thanks! It does really help, because when you're editing other people's code, as a previous poster noted, sometimes it adds extra quotations, or doesn't add them at all. Gets very confusing.




Back to top
scrate



Joined: 27 May 2010
Posts: 1

PostPosted: Thu May 27, 2010 4:11 pm    Post subject: Reply with quote

I would definitely like a way to turn off the auto quotes for the xhtml editor.

When you type an attribute like <img src=, the equals sign("=") triggers the auto quotes. I cannot get used to this since any other IDE/editor I've ever used did not work like that. I always end up typing a quote after the equals sign and that puts you outside of the quotes. This is something thats just ingrained in my hands I can't stop it, and its seriously annoying when I'm hand coding a web page.
Back to top
mokum020



Joined: 30 May 2010
Posts: 1

PostPosted: Sun May 30, 2010 6:16 pm    Post subject: Reply with quote

I love Netbeans, apart from the quote madness.

Say, I type:
"I want to type something"

Netbeans will put in my document:
Ï want to type something

and omit the closing quote unless I press the spacebar after typing the quote.

And it does all the stuff described in the earlier posts (entering two quotes, when you only want one, deleting two quotes when you only want to get rid of the rogue one, etc.)

My suggested feature: A setting where Netbeans enters into the document the actual characters I type without thinking for me.
Back to top
Niloc



Joined: 29 Jul 2010
Posts: 2

PostPosted: Thu Jul 29, 2010 8:09 pm    Post subject: Reply with quote

Please let the user decide what he wants. Please make a checkbox so i can uncheck all the auto completing Netbeans seems to think its handy. Its not Word, it used for programming, so double quotes are all over the place. Its really annoying. I've tried so many editors and IDE's. Netbeans is the last resort for me. I think its exactly what i need, except the auto completing in xhtml. Crazy ! Smile Thanks mokum for this post. dh070
Back to top
yakichan



Joined: 12 May 2011
Posts: 2

PostPosted: Wed Jun 29, 2011 8:39 pm    Post subject: I have the same problem Reply with quote

Any solution?
Back to top
Azizur Rahman
Posted via mailing list.





PostPosted: Thu Jun 30, 2011 3:05 pm    Post subject: Turn off automatic quote closing? Reply with quote

Try,

Tools -> Options -> Editor -> Code Completion -> Uncheck "Insert Closing Brackets Automatically"

If it does not work

see: http://netbeans.org/bugzilla/show_bug.cgi?id=198699

Option to turn it off will be available in NB 7.1.


On Wed, Jun 29, 2011 at 9:39 PM, yakichan <address-removed ([email]address-removed[/email])> wrote:
Quote:
Any solution?




Back to top
ssm2017



Joined: 09 Feb 2012
Posts: 2

PostPosted: Thu Feb 09, 2012 5:44 pm    Post subject: Reply with quote

hello
im using netbeans 7.1 under ubuntu 11.04
<edit> : in the bugzilla ticket, you have changed a request to another feature and did not answer to the request itself.
there is no way to disable the auto closing quotes in 7.1 (or i did not find it)
</edit>
i like the option to auto change quote when selecting text but i would like to be able to disable auto close quotes too.

here is an example of my problem :
i would like to change a long string to multilines.

original string : $query = "SELECT * FROM mytable WHERE field=value";

here are the steps :

1/ $query = "SELECT * FROM mytable"
WHERE field=value";
2/ $query = "SELECT * FROM mytable"
. ""WHERE field=value";

the auto close quotes mechanism is not checking if there is already a quote at the end of the string so it is adding a second quote that i need to delete...

if this is really a problem to disable auto quote closing, maybe you can add a routine to check if there is already a quote at the end of the string and if yes, don't add a second quote.
Back to top
zedzedbeta5



Joined: 02 Apr 2012
Posts: 1

PostPosted: Mon Apr 02, 2012 6:26 pm    Post subject: Re: Turn off automatic quote closing? Reply with quote

willirl wrote:
Is there any way to turn off automatic quote closing?

(When you enter a quote it creates the closing quote)


I was searching for this just now and came across your request. You know, this is a perfect example of a SIMPLE question gone stupid. You ask X and then here come the:

"Well what's the velocity of multi-colored version 1.9 sparrows on Venus"

Who cares, just answer the simple question without generating 2 pages of messages that people like me have to go through and still come out with a "sort of" answer. Geez.

Thanks for asking this question and sorry for the rant. I see posts like this all day long and it's discouraging when the RIGHT question is in front of you but you have to sift through nonsense to find the answer.
Back to top
deragoku



Joined: 15 Apr 2012
Posts: 2
Location: USA

PostPosted: Mon Apr 16, 2012 12:46 am    Post subject: Reply with quote

I often use other IDE, such as vim it, which will increase my typos, I ended = the value of the lack of HP 97 quotation marks.
Back to top
daniwan



Joined: 15 Nov 2012
Posts: 1

PostPosted: Thu Nov 15, 2012 4:37 am    Post subject: Re: Turn off automatic quote closing? Reply with quote

I must admit I'm pretty frustrated with this as well. I like to have the code hinting window that shows me the various members and methods of the object that I am working with but I absolutely detest the automated closing quotations and parenthesis. Why is it so hard to add in an option that we can disable this? Example why it sucks big donkey.... you knows.

frame.setVisible(

^^ Type that you get....

frame.setVisible(|[some random value])

Ok, thats fine I guess. I can hit any character and the random value goes away. So now I have...

frame.setVisible(true|)

All I need to do is hit ); <enter> and this line is done. But wait, if I hit ); enter what do I get?

frame.setVisisble(true);)|

^^ wtf?

Maybe I should just use eclipse instead? They let you actually customize things like this. I like the lightweight and responsiveness of netbeans but quite honestly this is becoming a deal breaker for me and many others. So instead of just telling us to get used to it why not listen to your users and give us the option we're asking for? (Filip...)

Filip Zamboj wrote:
Hi,

yes, I closed the issue as INVALID because it works as expected, or at
least there is not any problem like that anymore. However, if you want
turning on/off automatic quotes code completion then file a new issue,
please. This part customized for all languages so I think you will have
to file it for each language/module you face this in it. It's php ->
editor for php.

Thanks!



-------------
Filip Zamboj
Sun Microsystems

[1] http://www.netbeans.org/community/issues.html
[2] http://qa.netbeans.org
[3] http://wiki.netbeans.org/HowToConfigureXDebug



Wedgie wrote:
Quote:
Filip there is a typo in your post that breaks the link to this issue at

http://www.netbeans.org/issues/show_bug.cgi?id=163057



I have the same problem when editing Javascript, presumably it affects all Netbeans editors not just PHP. Do I need to open a separate issue for this?



I agree that you need to be able to turn this feature off, it's really only useful for touch-typists












None of us that are asking for this care that it works the way you expect it to we're asking for an option to turn it off...
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> PHP Users All times are GMT
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
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
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo