Cheat sheet
Shortcut keys
Ctrl + Shift + Enter/Ctrl + Shift + Enterto run the code in the editorCtrl + X/Cmd + Xto cut a line or a selectionCtrl + C/Cmd + Cto copy a line or a selectionCtrl + V/Cmd + Vto paste a line or a selectionCtrl + Enter/Cmd + Enterto insert a new line below the current lineCtrl + //Cmd + /to comment/uncomment out a line or a selection
Clear the console
You can clear the console before running the code with the following command:
from org.eclipse.ui.console import ConsolePlugin
consoles = ConsolePlugin.getDefault().getConsoleManager().getConsoles()
console = next(c for c in consoles if c.getName() == "openLCA")
console.clearConsole()
You can add this script to your own directory (e.g.
~/openLCA-data-1.4/python/utils.py) and run it with the following command:
from utils import Console
Console.clear()