[sublime text] 如果运行成功,不要显示 [Finished in 98ms]

 

To actually kill it, you have to override the default build execution script. Here is the real way to do it:

The "Deep Dive" Fix

  1. Install "Package Resource Viewer":

    • Press Ctrl+Shift+P (or Cmd+Shift+P).

    • Type Install Package and hit Enter.

    • Search for PackageResourceViewer and install it.

  2. Open the Build Script:

    • Press Ctrl+Shift+P again.

    • Type PackageResourceViewer: Open Resource.

    • Select Default.

    • Select exec.py.

  3. Edit the Code:

    • Find the line (usually around line 450-460) that looks like this:

      Python
       
      self.write("[Finished in %s]" % elapsed_str)
      
    • Comment it out by adding a # at the start, or just change it to an empty string:

      Python
       
      把此行注释掉,重新添加一行,输入pass
  4. Save and Close:

    • Save the file. Sublime will now use this "override" version of the execution script, and that footer will be gone forever.

posted @ 2026-01-29 02:50  profesor  阅读(3)  评论(0)    收藏  举报