VSCode live preview: many extraneous logs - visual-studio-code

When I use the built-in Live Preview: Start Server and open dev tools (via the hamburger menu), I get lots of extra logs that don't occur in an external browser.
As I type console, for instance, when I type the c I get an error log c is not defined, then the same for co and con and cons all the way up until the word console is complete, filling up the devtools with nonsense logs. This does not happen in an external browser.
How can I suppress all these intermediary logs? I'd be happy with either a debouncing strategy, or a way to only refresh the page on save.

You could set an auto save delay.
Autosave has multiple modes. One of which is "afterDelay." If you set a delay, it will give you more time to type a line of code.
To make this change, you can set it like this:
Open the settings. It's under File > Preferences > Settings in Windows, or Code > Preferences > Settings in macOS.
Search for "autosave."
Change the Auto Save setting to afterDelay.
Change the Auto Save Delay setting to the number of milliseconds to wait before saving. For example, setting it to 5000 will delay the save for five seconds.
More information about configuring autosave.

Related

VS Code opens a new editor group for data viewer

I'm using two editor groups in VS Code to write Python code. The left group has open files, and the right group has an interactive Jupyter-like window to test code and also displays data frames with the data viewer.
Alas, since a few days ago, VS Code always opens a third editor group to the right when I open the data viewer (subsequent data frames will also be displayed in this group). This, of course, needs space and everything is reshuffled and it's driving me nuts.
I must have changed something inadvertently so that VS Code is no longer limited to opening 2 editor groups, but I can't find the setting. How do I turn this back?
I have looked through the settings (global and workspace) and can't find anything remotely indicating how to configure it.

How can I add a button to the Eclipse IDE that will turn on or off a certain preference?

Some context first: I'm in charge of purifying the (abominable) source code for an old, huge Java application. Eclipse's code style cleanup tool does a good bit of work, upon which I can then rewrite the extant source code into something less awful, but I keep running into an annoyance: I have the "organize imports" save action turned ON (see Preferences → Java → Editor → Save Actions → Organize imports), but I would rather be able to turn it OFF while I am working on a particular file, and turn it back ON when I'm done with it, to ensure the file gets fully cleaned up.
Routinely turning the mentioned preference on or off on command through the standard dialog windows is less than straightforward (and one can get lost as to its current state as well). It would be much more comfortable to define a custom button in the IDE that I could simply click to turn this particular preference on and off, and know its current state just with a quick glance... but I'm at a loss on how to program such a button.

Is there auto-syncing in netbeans for external changes

I know netbeans syncs the original files once I save, but if there is a file changed externally is there a way for netbeans to recognize this and either tell me to re-sync it or automatically resync it with the new changes?
Here's what makes this behavior possible:
NetBeans 6.9 contains a feature that automatically looks for external changes to keep informations about files up-to-date. We have some reports that it can slow down NetBeans mainly, when an open project has many folders. When NetBeans find out that files were externally changed, it re-scans the files to keep data up-to-date that are used with features like code completion, navigation etc. Unfortunately the notification and following re-scanning can take some time and during this time many mentioned features are waiting for the finishing of scanning. There is option Enable auto-scanning of sources that can switch off this behavior. The option you can find it in Options dialog, Miscellaneous category and Files tab.
The default behavior is that NetBeans also looks for external changes when the main window gets focus. This is can be during developing a web application very often when user switches between browser and IDE. The mentioned option also switch this off.
When you switch off option Enable auto-scanning of sources you can still keep the information up-to-date, just invoke Scan for External Changes action from Sources menu manually.
(Here's the original article by Petr Pisl)
I find it counterproductive to leave this setting on, as sometimes auto-loading external changes to a file opened in the UI without asking for permission first can ruin your day when you're forced to make small local changes that you don't want replicated in your repository. I'm sure other people can think of more reasons to advocate for "warn before loading external changes" behavior to be implemented in NB. That is one of the reasons why I like Eclipse better sometimes.

Are there more explicit commands/toolbars and feedback for Eclipse for Android?

I'm new to Eclipse. I may need a better understanding or a plugin that would provide me with features described below. While doing some Android development, and I while making changes to my code at one point Eclipse warned me that this emulator doesn't support hot-swapping and if I want to disconnect. I'm used to see status in either the toolbar or in some log from Visual Studio. Is there a way to see this feedback in Eclipse?
My problem is that there are quite much implicit stuff in eclipse I would like get feedback of and control, like whether I'm
connected or not to a device,
if I'm attached to a process on it or not with debugger,
some kind of build log with a timestamp so I know it happened,
the automatic uninstalling and installing of the project on the device
which project is "active" ("featured") in "Run" and "Debug" buttons/configurations
Is there a plugin that can give me explicit commands over these automatic features? Like a toolbar or command. What I would expect of this tool:
be able to indicate the current status (eg. currently connected or not)
gives me control to eg. connect
gives me control to eg. disconnect
Preferably on a toolbar, as I know some of these are available as menu commands.
Furthermore I tried to configure my toolbar by Window menu -> Customize perspective..., but pin-pointing the features I want made my Eclipse put empty space up for the buttons I disabled, and next time I got to the same config screen it got the checkboxes wrong and displayed some stuff active what was actually disabled.

Chrome console + text editor

I find myself typing JavaScript in the console a lot. For example, I quickly want to see the result if I change the property of a certain object. However every time that I refresh the page I have to redefine my variables, etc. I do this by using the up-key, so I do not have to retype, but this costs a lot of time. What is a better way?
The ultimate coolness would be an environment like Sublime Text in which you can write multi line code and from there execute it directly in the browser... And then still have the autocomplete list of all the methods of an object (like in the console). Obviously this is not available, but I am very interesting in the workflow of other when typing JavaScript code in the console.
In Chrome 24's Sources panel, use the Snippets tab. Right-click in the left (blank) tree and choose New from the context menu.