Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
574 views
in Technique[技术] by (71.8m points)

notepad++ - 在Notepad ++中将制表符转换为空格(Convert tabs to spaces in Notepad++)

How do I convert tabs to spaces in Notepad++?

(如何在Notebookpad ++中将制表符转换为空格?)

I found a webpage that suggests it's possible, but I couldn't find any information about how to do it.

(我发现一个网页表明它是可能的,但我找不到任何有关如何操作的信息。)

I would like to be able to do that, because some web forms don't respect code with tabs in them.

(我希望能够做到这一点,因为一些Web表单不尊重带有选项卡的代码。)

  ask by Helephant translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

To convert existing tabs to spaces, press Edit->Blank Operations->TAB to Space .

(要将现有选项卡转换为空格,请按Edit->Blank Operations->TAB to Space空格键。)

If in the future you want to enter spaces instead of tab when you press tab key:

(如果将来按Tab键时想要输入空格而不是制表符:)

  1. Go to Settings->Preferences...->Language (since version 7.1) or Settings->Preferences...->Tab Settings (previous versions)

    (转到Settings->Preferences...->Language (自7.1版)或Settings->Preferences...->Tab Settings (以前的版本))

  2. Check Replace by space

    (选中Replace by space)

  3. ( Optional ) You can set the number of spaces to use in place of a Tab by changing the Tab size field.

    (( 可选 )您可以通过更改Tab size字段来设置要使用的空格数来代替选项Tab size 。)

替换为空格的屏幕截图


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...