When I double click a file to open it from the finder, it opens in the currently open/focused project/window. IMO, this is a bad default.
I need files to open in the current window ONLY if they are in the project of that window.
Can this be set? Where do I set it?
There is a way to do it. You can add this line to your project's or global settings file.
"window.openFilesInNewWindow": "on",
Note
If you are using the cli tool there is also an easy way to do it:
code yourfile --new-window
Related
When you want to make a different settings on a specific project, you will make .vscode/settings.json.
I know how to make .vscode/settings.json. If I make that directory and file and name as .vscode and settings.json then those files will be functioning as the setting of the project of the directory.
But I'm lazy to do those all acts. Is there some simpler ways to make the settings.json file on each project directory? Like by using a shortcut key we could make the file, or just by using a button from a extension.
---updated on Nov 1st, 2022---
I think,
Select File > Preferences > Settings (or press Ctrl+,)
and Select Workspace tab, and then changing any setting
is the fastest way to make the .vscode/settings.json now.
if you change any setting of there, immediately vscode will make the file. No other shortcut, but I think this is quite reasonable.
If you need to change some settings in vscode, vscode will make the .vscode/settings.json automatically.
go to settings GUI, Ctrl+,
select Workspace tab
click Open Settings (JSON) button in top right corner
Or
Execute command: Preferences: Open Settings (JSON)
Or any of the other open settings commands.
How to make VSCode to use only current project files when using dialog for quick file open by name or we always have to clean editor history so recent files won't be showing there?
This setting:
Search > Quick Open: Include History
Whether to include results from recently opened files in the file
results for Quick Open.
Uncheck it to set it to false.
I want to be Visual Studio Code my default editor for all text-based file types in Windows. For Notepad++ there is an extension in the Windows Explorer to provide "Edit in Notepad++" for each file.
How can I achieve this for "Edit with Visual Studio Code"?
Do I have to "program" such extension on my own or are there any ready-to-use solutions available?
According to this blog post you can set this option during the installation process. If you want to add this option afterwards you either can follow the instructions of the rest of the post or (as recommended) reinstall vscode and then select that option during reinstalling.
When I faced the same issue, for me it was more comfortable to simply reinstall vscode.
It is east !
step 1 -->
Right click the file you want to always open with VS code
example - if you want to always open .txt files in VS code then Right click on any .txt file that is in you system
see this
step 2 -->
click on 'open with'
see this
step 3 -->
click on 'choose another app'
see this
step 4 -->
a new window will open, it will show all the applications on you system that are capable to open that file
click on VS code
and check the box at the bottom that says 'always use this app to open .txt files'
see this
and then click on open
THATS IT
NOW ON .txt FILES WILL BE OPENED IN VS CODE
.txt file extension is just an example, you can do this to any file example .py, .html, .pdf etc.
Is there a way to use netbeans as a simple text editor, without setting up a project?
I am interested in using netbeans features as a text editor, especially for making quick changes on remote servers.
Yes, of course you can use it as a text editor. Just Open Netbeans and select File > Open File and select the file to open from the file chooser dialog. Make changes and click Save.
If you want to edit files on network locations, again do File > Open File and paste the location of your remote file.
I am using windows and have successfully added sublime to the PATH. It seems that commands like -b for open in background do not work for whatever reason. My question is how can I open a directory with the command subl ./dir and open each file individually? Right now it adds it to the project and I would much rather it just open every file separately.
You can try
> subl dir/*
Alternatively, you can open the project in a dir > subl dir and then install EnhancedSidebar package in sublime. This allows you to select multiple file right click them and click edit. Hope this is what you're looking for.