question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FEATURE REQUEST: Option to clear terminal before 'Compile active file'

See original GitHub issue

Brief Issue Summary

There is currently an option to Clear Output Before Build which clears the output window “CMake/Build” when you run the CMake: Build command, but there is no option to clear the output when running CMake: Compile Active File which has its output in the terminal window.

I would like an option to clear the output before compiling the active file, either by clearing the terminal, or making that command redirect to the same “CMake/Build” output window used by the build command.

Expected:

  1. Run CMake: Compile Active File
  2. Scroll to top of terminal window to find the first error to fix

Apparent Behavior:

  1. Run CMake: Compile Active File
  2. Scroll to top of terminal window and see errors from an earlier run
  3. Manually clear the terminal and try again

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
mqtthiqscommented, Sep 22, 2021

Hello, I found this issue google for a way to clear the Output tab when Building+running. The new option does clear the output when running “CMake: Build” but not when running “CMake: Run without debugging”. Woudn’t it be more consistent if the option also acted on the other ways to build?

0reactions
andreeiscommented, May 20, 2020

This fix is available in CMake Tools #1.4.0 which has been released.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I clear the terminal in Visual Studio Code?
Use Ctrl + K . This goes clean your console in Visual Studio Code. ... in the banner and give the preferred shortcut...
Read more >
Advanced Terminal Usage in Visual Studio Code
As an embedded application, the integrated terminal should intercept some, but not all, keybindings dispatched within VS Code. The configurable terminal.
Read more >
Build and clean projects and solutions in Visual Studio
Learn how you can build, rebuild, or clean all or some of the projects or project items in a solution.
Read more >
GitLab CI/CD
Learn how to use GitLab CI/CD, the GitLab built-in Continuous Integration, Continuous Deployment, and Continuous Delivery toolset to build, test, ...
Read more >
BlueJ FAQ
You can get BlueJ to automatically clear the terminal before every interactive method call. To do this, activate the 'Clear screen at method...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found