abap 删除前导空格_如何在Microsoft Word中删除行上的前导和尾随空格
abap 删除前导空格
If you’ve worked with too many documents in which others have used spaces to align text and images, you know it can be very time consuming to manually remove the extra spaces from the beginning and end of each line.
如果您处理了太多文档,其中其他文档使用空格来对齐文本和图像,那么您会知道手动删除每行开头和结尾的多余空格会非常耗时。
Word does not provide a straightforward way to remove extra spaces on lines. You’ve probably been manually deleting the spaces by repeatedly pressing the delete or backspace keys. However, we’ll show you a quick and easy way to remove the extra spaces from multiple lines at once, saving you time.
Word没有提供直接的方法来删除行上的多余空格。 您可能已经通过反复按Delete或Backspace键来手动删除空格。 但是,我们将向您展示一种快速简便的方法,一次可以删除多行中的多余空格,从而节省了时间。
RELATED: How to Display Non-Printing Characters in Word
相关: 如何在Word中显示非打印字符
To begin, we want to see where the spaces are, so we need to show non-printing characters. To do this, make sure the Home tab is active on the ribbon and click the “Show/Hide ¶“ button in the Paragraph section. Spaces are shown as dots.
首先,我们想看看空格在哪里,因此我们需要显示非打印字符 。 为此,请确保功能区上的“主页”选项卡处于活动状态,然后单击“段落”部分中的“显示/隐藏¶”按钮。 空格显示为点。
Select the lines that contain spaces you want to delete and center the lines by pressing Ctrl+E, or clicking the Center button in the Paragraph section of the Home tab. Notice that the spaces on the lines are now gone.
通过按Ctrl + E或单击“主页”选项卡的“段落”部分中的“居中”按钮,选择包含要删除的空格的行并将它们居中。 注意,行上的空格现在消失了。
Now, you can format the lines the way you want without the extra spaces. Here we left-aligned the selected lines and now they’re lined up neatly on the left.
现在,您可以按需要的方式设置线条的格式,而无需多余的空格。 在这里,我们将选定的行左对齐,然后将它们整齐地排列在左侧。
You can also delete extra spaces on lines in .txt and .rtf files this way. Simply open the files in Word and follow the steps outlined in this article.
您也可以通过这种方式删除.txt和.rtf文件中行上的多余空格。 只需在Word中打开文件,然后按照本文概述的步骤操作即可。
-
› How to Quickly Scroll Through Home Screen Pages on iPhone and iPad
-
› How to Move a Window to Another Virtual Desktop on Windows 10
-
› What’s the Deal with Google Home and Nest? Is There a Difference?
abap 删除前导空格