Where is the Coverage tab in Chrome DevTools - google-chrome-devtools

Find unused JavaScript and CSS code with the Coverage tool, but don't know where to open the Coverage tab

Open the Coverage tool
Open the Command Menu.
Click the Customize and control DevTools(...) menu button, and then select Run command:
Or, press Ctrl+Shift+P (Windows, Linux) or Command+Shift+P (macOS).
Start typing coverage, select the Show Coverage command, and then press Enter. The Coverage tool opens in the Drawer.

Related

Integrating Visual Studio Code into Cygwin

I was wondering if there was a way to have Visual Studio Code open a file when accessed by Cygwin. For instance, when using an alias to change directories and open a Verilog file, have that file be opened within Visual Studio Code instead. I have very limited experience in Linux, and it looks like Visual Studio Code is easier to navigate/edit scripts, though that could be wrong.
One way to open a windows command (that is not in the path) from the cygwin terminal is to create an shell alias to start VSCode or Visual Studio with a filename from the cygwin terminal. Add a line to your .bashrc like:
alias vscode=<path to vscode>
Find <path to vscode> by right clicking on the link you use to open VSCode or Visual Studio using the desktop or start menu, and select "More -> Open file location". This will open an explorer window with a shortcut highlighted. Right click on it, and select "Properties". In properties click on the "Open file location" button. In the resulting explorer windows, use shift-right click on the highlighted file and select "Copy as path".
Back in cygwin, enter
cygpath -wa <paste>
(In the cygwin terminal, use "Right click -> Paste" or shift-ctrl-C to paste). Then use line editing to change the double quotes to single quotes and run the command. This shows you the string to use as <path to vscode> in the alias command. You must restart the cygwin terminal for the alias to be available.
To use this alias, enter e.g.
vscode <filename.ext>
to open the file is VS Code or Visual Studio. I use similar alias to open an explorer window, or my browser with an html file, or to open a file in Notepad++.

Right-click menu not showing in Selenium IDE

On this Selenium documentation page, it says "You can export either a test or suite of tests to WebDriver code by right-clicking on a test or a suite...", but when I right-click, I just get the web browser's right-click menu instead of Selenium-IDE's menu:
I have found that quitting Firefox and starting it again will give me the proper right-click menu, but wondered what I was doing to cause it, and if the developers know about this.
Firefox 71.0 (64-bit) on Windows 7
Selenuim IDE Version 3.16.1
This is because you are trying to export test from different tabs. 'Executing' tab is opened on your screen, but 'Tests' tab is opened on documentation screenshot .
About restarting Selenium IDE: 'Tests' tab opens as a main window after restart, so exporting is available there. When you start running tests in Selenium IDE 'Executing' tab automatically opens and exporting is not available. You should change tab by clicking on the tingle near tab name and select 'Tests' tab where you can export your test.
If you think that this is not correct behavior you should create issue here

How to run system shell/terminal inside Eclipse?

I am using Eclipse Neon, and I would like to execute system commands on a shell/terminal, inside Eclipse.
In particular, I will need to open the system shell using the path of the current project folder on which I'm working in Eclipse.
In some Eclipse packages, like STS or Eclipse for JEE Developers, the Terminal is already installed in your IDE. If not, you can install the TM Terminal from the Eclipse */release update site, as you can see in the image below.
To open the command prompt (shell or terminal) using the path of a project directory inside Eclipse, you just need to select the folder, and press Ctrl+Alt+T, or right-click and select Show In Local Terminal > Terminal.
Then, the terminal will open in a new view inside Eclipse.
The Eclipse IDE which I am working there is no Terminal is there. So I needed to add the plug in like this and it works fine when you try clicking Alt+Ctrl+T
Click on Help in Eclipse-->Eclipse Marketplace--> in Find box (Search terminal and Enter)--> You will see TM Terminal 4.0 Version and just install it.
You may need to restart afterwards
And finally you will be able to get the Terminal when you will type
Alt+Ctrl+T on Console.
If you don't have the TM Terminal plugin installed, you could use external run configurations.
Click on the arrow near run button with the toolbox and add a new external run configuration.
Here, you can enter the path of your program(if you want to run commands, it will be C:\Windows\System32\cmd.exe (or the path to PowerShell on windows and /bin/bash (or similar if you use another shell) on linux.
In this dialog, you can also specify running directory of the application(the current project in your case)
After that, you can save this configuration and start it using the external run configuration menu(run button with toolbox)
Click on Run Cofiguration--> arguments --> Program Arguments (write any number of String) -->click on run
Go to Window > show view > Other.
A dialog will show up, type Terminal in the search field, select Terminal and click open.
A new empty view will show up in Eclipse.
On the top right corner of the view there is a button Labeled "open a Terminal".
Click on it, a dialog will show up
click OK and there you go, you got a Terminal.

Eclipse shortcut to open run/debug configuration list

Is there a shortcut to open the list of saved run/debug configurations as shown below?
Just to open and select a configuration to run. I really don't like using the mouse everytime to open the dropdown list and select my configuration.
If there isn't a pre-defined shortcut for it, can one be made manually if not?
Alt+R followed by T shows you the drop down menu in Run > Run History.

Execute external file from Eclipse PDT?

I would like to add button to toolbar or menu item to menu in Eclipse PDT to run external command line exe or bat file. How to do this in Windows?
You can create a custom "External Tools" run configuration.
Click on the button beside the Run button which looks the same as the Run button except it has a little red toolbox. Choose "External Tools Configurations" and create a new "Program" run configuration.