Sublimetext3 更改选定文本行的长度升华文本3?

Sublimetext3 更改选定文本行的长度升华文本3?,sublimetext3,Sublimetext3,是否有办法将选定的长文本拆分为多个短行 例如:从这个 French President Emmanuel Macron said France will not accept text that does not mention the historic Paris accord. "If we don't talk about the Paris agreement and if we don't get an agreement on it among the 20 members in

是否有办法将选定的长文本拆分为多个短行

例如:从这个

French President Emmanuel Macron said France will not accept text that does not mention the historic Paris accord.

"If we don't talk about the Paris agreement and if we don't get an agreement on it among the 20 members in the room, we are no longer capable of defending our climate change goals and France will not be part of this," he said on Wednesday.

France was one of the main drivers behind the Paris accord and the French parliament is now debating an energy bill that targets net zero greenhouse gas emissions by 2050.

"Negotiations on the topic of climate will be especially difficult this time," a German government official said.
像这样的事情

French President Emmanuel Macron said France will not accept text that does not 
mention the historic Paris accord. 

"If we don't talk about the Paris agreement and if we don't get an agreement on 
it among the 20 members in the room, we are no longer capable of defending our 
climate change goals and France will not be part of this," he said on 
Wednesday. 

France was one of the main drivers behind the Paris accord and the French 
parliament is now debating an energy bill that targets net zero greenhouse gas 
emissions by 2050. 

"Negotiations on the topic of climate will be especially difficult this time," 
a German government official said.

有两种方法可以做到这一点,这取决于您是否希望不处理文本,并且能够读取长行,或者是否希望实际修改文件

软包装 如果您只想查看文本,但物理上保持不变,那么您需要的是换行。您可以切换
View>Word Wrap
的状态以打开和关闭换行,并且
View>Word Wrap列中的选项指定换行的位置<代码>自动
选择窗口的边缘,或者您可以为要换行的数据指定特定列

这是软包装;您会注意到,边沟中的线与实际线的比例不是1:1,因为有一条物理线,但有多条逻辑线(此处的换行设置设置为
自动
):

自动换行状态由默认首选项中的
word\u wrap
设置控制;它确定默认包裹状态是什么。从菜单中更改换行仅会更改当前正在编辑的文件的换行,因此如果要永久更改状态,应更改该设置

此外,
wrap\u width
设置控制软包裹发生的位置,
0
(默认值)是窗口的宽度(即菜单中的
自动
设置)。
View>Word Wrap列下的菜单项将此设置的值更改为特定值,但您可以在首选项中设置任何喜欢的值

硬包装 如果要实际修改文本,则需要使用
Edit>Wrap
菜单中的选项。在这里,您可以选择要将所有文本包装的文本,或者将光标放在段落内部,只包装一个段落

您可以选择在特定列或当前标尺处换行,您可以在
视图>标尺
中指定

以这种方式完成后,文件的内容将被物理修改(在这里,我选择了在第70列换行的选项,并从上面关闭了软换行):

标尺(或多个标尺;您可以有多个)的位置由
标尺
设置控制,默认设置为空。上面的菜单项将当前文件中的标尺设置为菜单项中显示的值,但您可以将
标尺设置设置为所需的任何值。如上所述,默认设置在首选项文件中,菜单项仅更改当前文件的状态,因此需要修改首选项以设置永久值


在特定列处换行的菜单项使用带有指定的
宽度
参数的
换行
命令也毫无意义,因此,如果需要,您可以创建一个自定义键绑定,可以在任何位置换行。

您尝试过更改这些设置吗?//如果启用,则禁用水平滚动。//可以设置为true、false或“auto”,其中将对//源代码禁用,否则将启用。“word_wrap”:“auto”,//设置为非0的值以强制在该列而不是//窗口宽度“wrap_width”:0处换行,只需转到preferences=>settings,然后将值更改为适合您的设置needs@AndriusSolopovas我需要拆分选定的文本。单词包装不起作用。这里有一个工具可以实现这一点。但我想知道我是否能在SublimiteText中实现它。我不认为这种功能是内置的。你应该寻找一个插件,或者使用python编写自己的插件。硬包装是我需要的。非常非常感谢你的回答。