' Markers"对于 VIM-6ren"> ' Markers"对于 VIM-VIM 中是否有可能为 ruby​​ 代码重复“执行和更新‘#=>’标记”TextMate 功能。 我想要这样的东西: x = 2 class A def a 42 end end x-6ren">
gpt4 book ai didi

ruby - "Execute and Update ' # => ' Markers"对于 VIM

转载 作者:数据小太阳 更新时间:2023-10-29 07:00:21 24 4
gpt4 key购买 nike

VIM 中是否有可能为 ruby​​ 代码重复“执行和更新‘#=>’标记”TextMate 功能。

我想要这样的东西:

x = 2
class A
def a
42
end
end

x # =>
A.new.a # =>

输入一些命令...然后得到

x = 2
class A
def a
42
end
end

x # => 2
A.new.a # => 42

这是来自 Ciarán Walsh’s Blog 的对此功能的描述:

Another tool definitely worth knowing is the "Execute and Update '# =>' Markers" command (on ⌃⇧⌘E by default). To use it, add some comment markers (there is a snippet on #⇥ that will insert these for you) to the end of lines you would like to see the results of and then trigger the command. TextMate will run your code and report the result of the marked line inline in the comments. This feature is great for code posted online since it shows the source and the results together.

最佳答案

使用来自 rcodetoolsxmpfilter .

关于ruby - "Execute and Update ' # => ' Markers"对于 VIM,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4752583/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com