0

I found similar, but not quite the same question so here is my post:

I write my java code in notepad++, then when I am happy with it, I copy and paste it to NetBeans to test it. The text copies over quite misaligned sometimes. Is there a way to fix this or does anyone have another process to suggest?

Thanks!

Brian
  • 57
  • 5
  • 1
    What do you mean by misaligned? You can format code indentation in NetBeans. https://stackoverflow.com/q/1311912/10292075 – Yoshikage Kira Oct 11 '20 at 05:11
  • 1
    In the menu bar at the top of NetBeans select **Source** then in the drop down menu select **Format**. – DevilsHnd - 退職した Oct 11 '20 at 06:48
  • 1
    Do you have the same tab width in both systems? I would suggest using **menu** => **Blank operations** => **Tab to space** in Notepad++ before copying the text. – AdrianHHH Oct 11 '20 at 08:44
  • Thank you everyone. I will try these solutions. – Brian Oct 14 '20 at 14:28
  • Arvind, There is no checkmarks anywhere on the screen to click. I read more about it by none of my posted questions give me the option to click a checkmark – Brian Oct 15 '20 at 14:00

1 Answers1

0

(shift + alt + f) works perfectly to format and realign my code in NetBeans!

Brian
  • 57
  • 5