1.
e-editor 自带的 Compile Single File to Tool Command
提示无法识别参数 -Wmost ,删之
![](/Images/OutliningIndicators/ContractedBlock.gif)
![](/Images/OutliningIndicators/ExpandedBlockStart.gif)
puts %x{ "#{cc}" -g -Os -o "Test#{FileNoExtension}" "$TM_FILEPATH"}
2.
再添加一个运行的Command : Run,从上一个Command修改过来的
Code
#!/usr/bin/env ruby
#
#Run
require 'English'
FilePath = ENV['TM_FILEPATH']
FileDir = ENV['TM_DIRECTORY']
FileBaseName = File.basename(FilePath)
FileExtension = File.extname(FilePath)
FileNoExtension = FileBaseName.sub(/#{FileExtension}$/, "")
Dir.chdir(ENV['TM_DIRECTORY'])
puts %x{ "./Test#{FileNoExtension}"}
再在下面将Input改为None,Output改为Show as Tool Tip