visual-studio-code

I am not able to preview the icons on vscode while browsing?

﹥>﹥吖頭↗ 提交于 2021-02-19 05:22:36
问题 As seen in the picture I'm browsing the icons but none of them are shown. Is there a change in a new update or am I missing something here> it used to show the icons while I browsed. 回答1: There should be an arrow appearing when you hover on the right side of the tooltip stating "read more". Simply click once and therefore the icons preview should always appear. 回答2: I had the same issue. I maximized the VSCode editor, closed the navigation pane on left, and aligned the line most left then

VSCode terminal not showing current folder

痞子三分冷 提交于 2021-02-19 05:10:34
问题 When I open integrated terminal in VS Code, the initial screen showing "bash-3.2", see my screen shot When I looked any online examples, it always showing current path or folder, such as the image in official page. I was wondering how could I change the setting so that integrated terminal can show at least current folder that I am running the command. Please advise. ===updated==== I am sorry that I forgot to mention my OS is macOS sierra 回答1: Found the answer. You should add the following to

ScriptCS 0.17.01 Error Unexpected named argument

北慕城南 提交于 2021-02-19 03:39:38
问题 I tried to run my program using Visual Studio's Coderunner extension as well as from terminal with the scriptcs command. My code is as follows: using System; namespace HelloWorldApplication { class HelloWorld { static void Main(string[] args) { Console.WriteLine("hellowol"); } } } The error message reads: Unexpected named argument: Users/jfitz/Projects/C#/Projtest/test.cs 回答1: As mentioned in scriptcs/scriptcs issue 1188, this is from a scriptcs bug, which will be fixed in the next release

convert eclipse formating to .clang-format or use eclipse formatter in vscode

风流意气都作罢 提交于 2021-02-19 03:19:58
问题 In my project (C/C++) I use slightly modified formatting from eclipse default formatter (bsd/allman + spaces over tabs). I would like to switch the editor, and to do so, I have to have correct formatter. Is there a way to convert .xml file with formatting exported from eclipse, to .clang-format file ? I aim to have exactly the same formatting, and I do not want to reformat the project, just because I switched the editor Optionally, is there a way to use eclipse formatter in vscode for C/C++

VScode API why can't I get the current line?

独自空忆成欢 提交于 2021-02-19 03:01:09
问题 I am using typescript to write a vs code extension and for some reason I am unable to get the current line. The function I am trying to make is: function makeFrame() { vscode.window.activeTextEditor.selection.active.line; } Which fails with error: Object is possibly undefined The import statement is: import {window, commands, Disposable, ExtensionContext, StatusBarAlignment, StatusBarItem, TextDocument} from 'vscode'; What am I doing wrong? (I am both new to TypeScript and writing extensions

Integrated terminal in visual studio code is opening externally and not internally

让人想犯罪 __ 提交于 2021-02-19 01:52:08
问题 I have reinstalled Visual Studio Code and for some reason, when I do the Ctrl + Shift + ` shortcut, instead of opening a terminal window inside VS Code, it's opening an external command window, which is very annoying. Anyone knows what setting it is to get it back internally? I tried File->Preferences->Settings->Terminal and then set the first option "Customizes what kind of terminal to launch." to integrated. Is there any other setting I need to set? 回答1: Happened the same with me. It was

Integrated terminal in visual studio code is opening externally and not internally

浪子不回头ぞ 提交于 2021-02-19 01:52:05
问题 I have reinstalled Visual Studio Code and for some reason, when I do the Ctrl + Shift + ` shortcut, instead of opening a terminal window inside VS Code, it's opening an external command window, which is very annoying. Anyone knows what setting it is to get it back internally? I tried File->Preferences->Settings->Terminal and then set the first option "Customizes what kind of terminal to launch." to integrated. Is there any other setting I need to set? 回答1: Happened the same with me. It was

Is there a way to get VS code work with git worktree? (Windows with WSL)

十年热恋 提交于 2021-02-19 01:47:48
问题 I like to keep on repository checked out in several worktrees with git worktree to easily work on different branches simultaneously. Yet VS code does not seem to recognize git as scm when it is in a git worktree folder. I couldn't find anything in the docs about this or an extension. Are there any ideas on how I could get VS code to support git features in an external worktree? 回答1: I didn't think this would matter, but it turns out... I'm on Windows and run my git command line in Windows

Assign file with no extension to a language on VS Code as default

半世苍凉 提交于 2021-02-18 22:42:15
问题 In VS Code I usually open files that have no extension just filename . I know I can change the language syntax with Change Language Mode --> Language that I want but I don't want to do this manually every time I open such a file. Can I make a default to this language every time I open a file with no extension? I know I can do this: "files.associations": { "*.myphp": "php" } But what if there is no extension? Also I want to be able to do this without affecting the other file types (that have

No ESLint configuration found for Visual Studio Code

∥☆過路亽.° 提交于 2021-02-18 22:10:58
问题 I have installed the ESLint plugin for Visual Studio Code editor and it shows that it is installed also but still I see the error: No ESLint configuration found for Visual Studio Code at the top of the editor window as shown in the screenshot below: Can anyone help me to know is there anything that I am missing here. 回答1: You are missing .eslintrc.* file. Which can be in different format js, json, yaml... There are two available methods to create configuration file Manually, just create file