How to make vscode start with a blank file? - visual-studio-code

I want to use vscode instead of notepad. I prefer to type as fast as possible when launching vscode but i can't seem to find this option to do this. Does anyone know what this option is named after or if it's possible with a plugin?

This can by making a small tweak in vscode settings. All you need to do is open preferences and search for Startup editor. Under the Workbench section you'll find the Workbench: Startup Editor option. Change the value of this option to newUntitledFile.

Thanks to Torge Rosendahl whose comment provided the answer:
The setting you are looking for is workbench.startupEditor

Related

How to disable vscode's inbuilt suggestions?

I only want to keep the consoleLog but I want the rest gone. I've disabled all extensions and those suggestions are still there. I have no idea which language's suggestions are those but I want them gone. Just the vscode's inbuilt suggestions not the extensions' suggestions.
From looking at the little icon that precedes each entry and finding it here: types of completions - those are variables suggestions.
So you can specifically disable those with
Editor > Suggest: Show Variables

VSCode persist search preferences

Is there any way to configure my settings so that every time I reopen VSCode editor I do not lose search preferences (ie. Match Case, Use Regular Expression etc). For example in my last search if I activate Match Case how do I make this setting available even after reloading VSCode?
I was looking VSCode customization section but not found any clue on this.
I'm on the VSCode team. As of VSCode 1.8 this is not supported, but we have a feature request tracking this work: https://github.com/Microsoft/vscode/issues/11574

Is there a Keyboard Shortcut in Chrome Developer Tools to switch Source File?

Checking the list
https://developers.google.com/chrome-developer-tools/docs/shortcuts?csw=1#sources-panel
I cannot find any way to navigate through the source files inside Chrome Dev Tools. Anyone with an idea how to switch source files without using the mouse?
Ctrl-P / Ctrl-O shortcut will bring up a Goto-Source dialog.
To my knowledge there is no keyboard shortcut for doing this. I would know since I have recently updated that page multiple times to add or change some shortcuts.
I'm pretty sure there's no command you can configure either.
I'd suggest opening a ticket for it if you would like to see this added.

How do I make an editor the default editor for all unknown files in Eclipse?

I regularly open files of different types in Eclipse. For many types, Eclipse uses the system editor by default. I don't want this to happen. I want Eclipse to use the built-in Text Editor for unknown file types. However all I can find are options to set the default editor for a certain file type, but not for all unknown ones. Is there an option to do this?
I don't think you can do this in one swoop, however:
Windows > Preferences > General > Editors > File Association.
If you don't have a LOT of unknown file types, just type *.junk, *.punk, *.clunck and add Text Editor as the default editor.
Sadly you can't use *.* here.
This issue with file associations is something that has always annoyed me with Eclipse. It is specially frustrating if you are trying to use Eclipse to edit files that don't have a file extension because then you can't even set a editor.
I searched over the Eclipse bug database and found my exact issue there. It was first reported in 2003 and up until now there is no solution for it. If you follow the long comment track over the years you will see that there is no way of setting a default editor for unknown file types. From what I gathered the problem boils down to eclipse not looking at the content of file to try to determine the type. Instead it fully depends on the file extension.
Some people have made suggestions for fixes but again nothing has come out of that. If you search the bug tracker DB you will find a lot more bugs created around this.
A clean solution to this is finally implemented in Eclipse.
On the Preferences > General > Editors > File Association page, you can now define an editor selection strategy for unassociated file types.
Source: https://www.eclipse.org/eclipse/news/4.6/platform.php#text-editor-selection-strategy
There is an Eclipse plugin that overrides the default behavior of the platform and opens text file of unknown type in the plain text editor of Eclipse instead in an external editor.
https://github.com/eclipselabs/default-text-editor

how modify the already installed content-assist?

First of, how can I see what plugin manages the CTRL + SPACE content-assist? And how can I modify it in other to add my own stuff. Any help/idea is gladly welcome.
Thanks.
I think you're looking for "Templates". Assuming you're using Java, this is in the Windows -> Preferences menu, then Java->Editor->Templates. For example, the screenshot below shows the CTRL-SPACE content assist when you type "sysout".
If i would have this task, I would go to preferences. Look for content assist settings. Write down some specific text you see in dialog box. Then go to plugins folder, and start to search inside archives. When match is present, open the plugin.xml of that plugin, and you will see the extension points of the plugin. Based on its name, I am pretty sure you will find the appropiate one. Then you can either google it, or look for plugins extending the extension point. Using JDGui or fetching source code of the extension example plugin will help you in disassembling. Eclipse usually not well documented as for extension points, so i do it this way.