NetBeans Forums

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

Disable Trailling Spaces deletion when formating code

 
Post new topic   Reply to topic    NetBeans Forums -> PHP Users
View previous topic :: View next topic  
Author Message
linuxaddikt



Joined: 14 Feb 2017
Posts: 2

PostPosted: Tue Feb 14, 2017 4:39 pm    Post subject: Disable Trailling Spaces deletion when formating code Reply with quote

Hi everyone,

In search of help for the following question. I hope this haven't been asked before...

Is it possible to disable the automatic deletion of trailling spaces when I hit Alt+Shift+F (format code)?

While I will sure delete them when I go in production mode, I find it really annoying that the cursor goes back to the first column when there's an empty line in my code. I would prefer the white spaces to remain in my code until I decide to remove them.

I run PHP version of NetBeans version 8.2 Build 201609300101

Robert
Back to top
paolosca



Joined: 09 Sep 2010
Posts: 515

PostPosted: Fri Feb 17, 2017 10:02 am    Post subject: Disable Trailling Spaces deletion when formating code Reply with quote

Have you tried to see if disabling it on save (Tools->Options->Editor->On save) also disables it on Source->Format?

Note that in the NetBeans version I use (also 8.2) the cursor goes to the first column when I move to a empty line but then it goes back to the correct column as soon as I move to a line with more text.

Regards,


Paolo



On Wed, Feb 15, 2017 at 12:39 AM, linuxaddikt <address-removed ([email]address-removed[/email])> wrote:
Quote:
Hi everyone,

In search of help for the following question.  I hope this haven't been asked before...

Is it possible to disable the automatic deletion of trailling spaces when I hit Alt+Shift+F (format code)?

While I will sure delete them when I go in production mode, I find it really annoying that the cursor goes back to the first column when there's an empty line in my code.  I would prefer the white spaces to remain in my code until I decide to remove them.

I run PHP version of NetBeans version 8.2 Build 201609300101

Robert




Back to top
linuxaddikt



Joined: 14 Feb 2017
Posts: 2

PostPosted: Mon Mar 06, 2017 7:31 pm    Post subject: Re: Disable Trailling Spaces deletion when formating code Reply with quote

This option is already disabled and still no luck... Thanks for your help.

Anyone else have any hint ?


paolosca wrote:
Have you tried to see if disabling it on save (Tools->Options->Editor->On save) also disables it on Source->Format?

Note that in the NetBeans version I use (also 8.2) the cursor goes to the first column when I move to a empty line but then it goes back to the correct column as soon as I move to a line with more text.

Regards,


Paolo



On Wed, Feb 15, 2017 at 12:39 AM, linuxaddikt <address-removed ([email]address-removed[/email])> wrote:
Quote:
Hi everyone,

In search of help for the following question.  I hope this haven't been asked before...

Is it possible to disable the automatic deletion of trailling spaces when I hit Alt+Shift+F (format code)?

While I will sure delete them when I go in production mode, I find it really annoying that the cursor goes back to the first column when there's an empty line in my code.  I would prefer the white spaces to remain in my code until I decide to remove them.

I run PHP version of NetBeans version 8.2 Build 201609300101

Robert




Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> PHP Users All times are GMT
Page 1 of 1

 
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 cannot 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