Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Notepad++ v6.7.8.2 unwanted tabs after pressing enter

Tags:

notepad++

I mainly use NPP for writing PLSQL code. The standard I follow is 3 line spacing. I have observed that when I press enter after a line, the cursor goes correctly at the point exactly below where the previous line started. This is really good. But what it does is instead of putting spaces, it puts tabs for the empty spaces which has to be accommodated.

Example is below. Look at line 3, its has 2 tabs before the start of code, I expect 6 spaces instead of 2 tabs.

update cai_vsc_ordhead cvo
  set vsc_po_process_ind = 'Y',
      vsc_partial_recvd_ind = 'N'
where cvo.status   = 'C'
  and cvo.close_date >= L_start_date
  and cvo.close_date <= L_end_date
  and cvo.vsc_shipment_count = 1;

Can anybody suggest a solution to avoid tabs when we press enter?

Pic

Regards and Thanks.

Screenshot of behavior

like image 589
cai tools Avatar asked Nov 01 '25 15:11

cai tools


1 Answers

Go to Settings->Preferences

Select Tab Settings from the left hand list (ensuring that [default] is selected on the right hand list, unless you want your changes to be language specific), and tick on the little tick box that says "Replace by space".

You can also set the number of spaces to insert by clicking on the blue number next to "Tab Size:" and updating it, for larger/smaller default tab indenting.

like image 124
Tim Radcliffe Avatar answered Nov 04 '25 20:11

Tim Radcliffe



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!