Close rightmost tab in chrome browser - google-chrome

In Windows,
The command
"C:\Program Files{x86}\Google\Chrome\Application\Chrome.exe" stackoverflow.com
(run using cmd)
will create a new tab with stackoverflow.com. The new tab will be
located in the rightmost position.
Similary, using cmd (or anything that is outside of chrome),
Can we close the rightmost tab of existing chrome ?

Related

PyCharm to open new file in the tab right next to the right of current-active tab?

Currently with PyCharm 2016.03, when I open new file, the tab opened at the end of the tab pane.
I google and see one old post about this - it was a open right next feature in the past and changed to open at the end now.
So if you know, if possible, how to switch tab-opening mode in PyCharm, please share!
That config is no longer available (at least in the 5.0.5 Pro version). You still have tabs appearance and closing policy configs under Editor -> General -> Editor Tabs menu, but no opening policy.
As a workaround you can left-click and drag a tab in whichever position you like.

Copying websocket payload info from chrome developer tools

How do you copy the entirety of the "frames" tab when inspecting a web socket in Chrome Developer Tools? Whenever Ctrl A, then Ctrl C, it only copies what is currently visible on my screen, not everything in the tab.
I can reproduce this annoying problem too. I will look into getting a fix for this in a future release of DevTools. In the meantime, I came up with a method of getting the data out of DevTools.
Open up DevTools in un-docked mode and navigate to the Frame panel.
Open up DevTools inspector using Cmd+Opt+I (Mac) or Ctrl+Shift+I (Windows)
Inspect the Frame panel, select the table element, and then right-click and select Copy > Copy outerHTML
Paste into your text editor and save it as an HTML page.
Open it up in the browser to view the table, which you can copy without restriction.
Update:
Before you Copy the contents of the HTML in step 3, you need to run the following code in the Console of the DevTools inspector (not the page one). The reason is that the rows in the table are only rendered when they are visible in the view port, based on size and scroll position. This explains a lot. The code below will override the __calculateVisibleNodes function to return the un-filtered list of nodes rather than reducing it to 11 items at a time.
WebInspector.ViewportDataGrid.prototype._calculateVisibleNodes = function() {
return { visibleNodes: this._flatNodesList()};
}
Note: You will need to re-open DevTools again later as this change will mess with other features.

Can't open in new tab in Sublime Text 3. Is it a bug?

Today my Sublime 3083 became corrupted! I don't know why but every time I click on a file it opens on the same tab!
I cannot open two tabs at the same time. Fist file opens in a new tab and another opens in the previous tab and so on!
I did not installed any plugins recently. I just selected "Close Other Tabs" on menu.
What can I do?
Thanks
You must open the file using double click. If you open it using single click then you're using a feature called file preview, and that file will be closed when you preview other file unless the file has changes.
In addition, in the settings file you can set the preview_on_click option to false to disable the preview option; if you do that a click on the file won't do nothing, and a double click will still open the file in a new tab. As far as I know there's no option to open the file with a single click, only you can 'preview' the file (it's similar to open but the file get closed if you preview another file). Example setting:
{
"preview_on_click": false
}
I was facing a similar but little different problem. I was not able to view any tabs I was opening, and it was always opening a new file.
I fixed it by "View" -> "Show Tabs".

Open HTML file in non-default browser

I know how to do that manually. But, is there an option to set up one particular file to be opened always in Chrome, despite Firefox being the default browser.
What I want is to set up somehow, one HTML file on my desktop to be opened in Chrome, but the rest of the html files continue to open in Firefox, and I want this to apply always for this file, even when I move it to some other computer.
I will assume we are talking about the Windows OS first. Secondly, I will assume that you do not have a Chrome shortcut sitting on your desktop, if you do have a shortcut just skip to the second step otherwise continue reading on.
Step 1: Create a Chrome Shortcut
There are many ways of doing this. Simplest one is to just search for Chrome in the Start Menu and drag the shortcut to your desktop like I have in the picture below.
Step 2: Open the Shortcut Properties
Right click on your Chrome shortcut and click the Properties option, like in the image below.
Step 3: Edit Your Shortcut's Target Value
Find the Target option in the Shortcut tab of the Properties window. Add the following piece of code at the end of your target statement.
--app=https://example.com
Replace https://example.com with any website you like. In the image below the highlighted part shows where you have to edit the target value. I have made a shortcut for https://google.com.
Hope this helps!
Note: This is a Chrome specific trick and it will open a new window without a URL bar or a toolbar.
Edit: Added pictures with more description.
You can right click on the html file then got to open with and it should display the available browsers select the one you would like to open the file with
You should be able to set it to open (in Windows (7) ) by right-clicking on a html file, going to 'Open With' and 'Choose Default program':
on most Linux systems you should be able to right-click, go to 'Properties' and set it under 'Open With...':
also, in Google Chrome settings you should be able to set it as default:

How to remove all breakpoints in one step in Google Chrome?

How to remove all breakpoints in one step in Google Chrome? Using version 11.
[update]
There is now a feature request for this.
[update]
The feature request is closed (Dec 2011)!
This is now possible in Sources tab of Chrome Developer Tools.
Please see screen grab below and right click within the "Breakpoints" section of the left window.
Since recently (Chrome 18), you can right-click any breakpoint in the Breakpoints pane and voila! The "Remove All JavaScript Breakpoints" popup menu item!
Chrome Devtools crashed everytime I tried to access the Sources panel because of a breakpoint on a minified Javascript file.
To remove all breakpoints without access to the interface, you can do the following:
Open inspector-on-inspector : undock first inspector and hit ctrl+shift+i to open the second
On the inspector-on-inspector console, execute the following:
window.localStorage.breakpoints = [];
Close the inspectors and reload the page. Now the breakpoints are gone.
Under Sources, you can click button marked with red on picture below or use shortcut Ctrl + F8 just like tool tip is showing (activate / deactivate breakpoints). A little bit lower under 'Breakpoints' you will see all your breakpoints. If you choose to disable all, they will be grayed out.
solution here.
To purge all breakpoints open inspector on inspector (undock first
inspector and hit ctrl-shift-I to open the second) and run
"WebInspector.settings.domBreakpoints.set([])" in second inspector's
console.
new Tabs; Ctrl+Shift+J to Console; Access URL
Open the Chrome task manager and end the tab page.
Ctrl+Shift+J to Application -> Service Workers (Offiline) -> Refresh
to Sources Cancel Breakpoint
Success
Another option is to de-activate all break points using:
Ctrl + F8
In my case Uninstall and new installation of Chrome was without any success.
Also window.localStorage.clear() did not help.
My "last chance solution" is to remove entire directory where Chrome is storing its data.
First turn off your Chrome.
Then look at this path "c:\Users\ {your_user} \AppData\Local\Google\Chrome\User Data\Default\Local Storage\". Here try to delete all what is in this directory.
You can also clear all inspector settings and reload the inspector. It helped me with fantom breakpoint I could not remove in any other way. Open inspector and go to Preferences -> Sync -> Restore defaults and reload (at the bottom).
Step 1: Go to Developer tools and expand Breakpoint section
Step 2: Right click on expanded area of breakpint and there will be many options lik