Menu

Convert tabs to spaces in file editor

Help
2021-07-22
2022-03-09
  • Michael Murphy

    Michael Murphy - 2021-07-22

    Is there any way to configure the file editor to insert spaces when the tab character is pressed, instead of tab characters? We have some devs editing through webmin, but some use other editors (like vim) which convert tabs to spaces automatically. Many programming languages heavily encourage the use of spaces over tabs to edit code, so it would be great if webmin could allow us to do this.

     
  • Ilia

    Ilia - 2021-07-22

    Hi,

    Yes, Michael it should be possible.

    I will update this ticket when I add this feature.

     
  • Michael Murphy

    Michael Murphy - 2021-07-22

    brilliant, thanks for the speedy response!

     
  • Michael Murphy

    Michael Murphy - 2022-03-09

    Hey Ilia, any progress on this feature?

     
  • Ilia

    Ilia - 2022-03-09

    Hey, Michael! If you have Webmin 1.990 installed this can be changed on File Manager ⇾ Preferences: File viewer and editor page using Automatically convert tab key press to spaces when editing a file option.

     

Log in to post a comment.

MongoDB Logo MongoDB