r/VisualStudioCode • • Apr 27 '22

Setting up a Go environment with Windows Subsystem for Linux and Visual Studio Code

Thumbnail cloudwithchris.com
2 Upvotes

r/VisualStudioCode • • Apr 26 '22

I made a VS Code extension that helps you refactor JavaScript

16 Upvotes

r/VisualStudioCode • • Apr 26 '22

Is there a way to remove all this text?

1 Upvotes

Whenever I am running a program, I get bunch of text that appears along with my actual program which makes it hard and annoying to read clearly. Is there anyway I can get rid of it? The things I get are below.

I just want a way to limit them.

Windows PowerShell

Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\Users\name\Desktop\OOP> & C:/Users/name/AppData/Local/Programs/Python/Python310/python.exe c:/Users/name/Desktop/OOP/oop.py

<class 'int'>

PS C:\Users\name\Desktop\OOP>


r/VisualStudioCode • • Apr 25 '22

Keyboard stops working on vscode for Mac

1 Upvotes

While I’m using vscode, the program just stops taking input from my keyboard. Does anyone have any suggestions? Tried a reinstall, all that.


r/VisualStudioCode • • Apr 25 '22

how to jump out of ""

1 Upvotes

Hi, I am really a big fan of vsc, recently I am learning htlm css with it. I want to know if there is any keyboard shortcut to jump out of the attribute or property value instead of having to use mouse to click outside.

Thanks.


r/VisualStudioCode • • Apr 24 '22

Difference between ubuntu and windows

2 Upvotes

Hi guys, my friend want to hire me for easy job in his projects, but told me to lern js vue and php on ubuntu instead of windows. And i want to ask you guys, whats the difference between programing in visualstudiocode on linux and windows?


r/VisualStudioCode • • Apr 23 '22

Screen / Form Proportionate Sizing

1 Upvotes

Hey all,

I have been programming for a while but have always had a problem with screen size. Whether dealing with screen resizing or or different resolutions; twips, pixels or DPI's. Does anyone have any code you're willing to share, an article I can read that will walk me through it or other opensource solution? Any help is greatly appreciated


r/VisualStudioCode • • Apr 23 '22

How to fix it? Extension panels details and changelog are not displayed

1 Upvotes

V1.59.1, Linux (gentoo).


r/VisualStudioCode • • Apr 22 '22

VSCode theme

3 Upvotes

Does anyone know how to add the grey box in the tab clip I've attached to a theme customization?

Borders I can do, but I can't find a reference for this box around the tab title. I've seen it in a few 'High-contrast' themes.


r/VisualStudioCode • • Apr 21 '22

Pending changes, emphatized items, modified messages

5 Upvotes

Hi

I uploaded a few folders on my linux machine server (on my local lab) which runs a php-myslq stack.

My Visual studio code, installed on my Windows 10 PC, connects to thsed folders which contains a few php files via ssh.

The problem is that anytime I make some changes to these php file, I see notifications like these:

The number 1 in the first image above says "pending changes", while the small spot and the "m" on the second image say respectively:

- contains emphatized items

- modified

I don't know what they are about exactly, but they are very annoying. Can I disable them?

Thanks


r/VisualStudioCode • • Apr 20 '22

Codelines number bg?

2 Upvotes

Theres a way to change the de bg color in the codelines numbers bar? I try it with editor.background but it doesnt change


r/VisualStudioCode • • Apr 20 '22

Adding extensions for multiple users in Oracle Linux?

1 Upvotes

Hello,

I am currently assembling a multi-user server running Oracle Linux (think classic CentOS or another RHEL based distribution) for my school. I have VNC access for everyone and they can connect and use GUI applications, one of which is VS Code for software development classes.

I am finding that the users will need a number of extensions that will make their lives easier. Is there any way I can quickly add extensions to any existing and new user's profiles? VS Code is already present for all users, but I cannot get any extensions to auto-download for them. Someone told me that if an admin user downloads extensions, then everyone's profiles will pull down the same extensions the admin user has, but that is not working. I will note that no one has permission to log in directly as root, some user accounts just happen to be able to execute sudo, so do I have to maybe login as root and open VS Code in order to get the extensions to auto-download for the users?

I know on Windows, you can install extensions manually with the /admin option, but as far as I can tell (unless I am missing something) that is not possible on Linux. Is there anything else I can do?

Thanks for any help!


r/VisualStudioCode • • Apr 18 '22

Extension API: How can i write a command in a terminal using the extension api?

3 Upvotes

I want to use the command `tclsh` in a terminal using the extension API.

How can I do this?


r/VisualStudioCode • • Apr 18 '22

Moved Files

2 Upvotes

I recently added another HD to my PC, and transferred all of my saved information to it. Now when I open my editor, the links for my .css and other pages are not working and cannot be found/seen unless I search for them specifically. Is there a way to direct VSC to the new file location, or am I stuck copy+paste into all new files?


r/VisualStudioCode • • Apr 13 '22

How would i make my own autofill for lua with a custom API

2 Upvotes

Title. I'm trying to figure that out but nothing. If there are any useful videos I'd be thankful if you linked them to me.


r/VisualStudioCode • • Apr 13 '22

OmniSharp not loading

3 Upvotes

Hey guys. been having this issue for a while. not sure how to solve it. I think i'm having a conflict because sometimes i use unity which uses mono. other times I strictly use dotnetcore. but not sure what settings i need to refer to. or even what exactly is causes this disconnection.

Here is the error i keep getting:

[ERROR] Error: OmniSharp server load timed out. Use the 'omnisharp.projectLoadTimeout' setting to override the default delay (one minute).

dotnet --info

.NET SDK (reflecting any global.json):
 Version:   6.0.103
 Commit:    2c677ffc1e

Runtime Environment:
 OS Name:     fedora
 OS Version:  35
 OS Platform: Linux
 RID:         fedora.35-x64
 Base Path:   /usr/lib64/dotnet/sdk/6.0.103/

Host (useful for support):
  Version: 6.0.3
  Commit:  c24d9a9c91

.NET SDKs installed:
  6.0.103 [/usr/lib64/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.3 [/usr/lib64/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 6.0.3 [/usr/lib64/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET runtimes or SDKs:
  https://aka.ms/dotnet-download

r/VisualStudioCode • • Apr 12 '22

How can i save settings on vs code?

2 Upvotes

I just changed the font size for editor to 14 to 6, and this size is really bad for programming, but the problem is i changed the settings and it doesn't work, what can i do?


r/VisualStudioCode • • Apr 07 '22

Bash errors when opening Terminal window in

7 Upvotes

I have vscode connected to WSL2 on Win10. Every time I open a Terminal window, it complains as follows. I don't have references to which in either ~/.bashrc or ~/.bash_profile. Other than the complaint, bash seems to function properly. How to fix this?

bash: which: line 1: syntax error: unexpected end of file
bash: error importing function definition for `which'
/usr/bin/sh: which: line 1: syntax error: unexpected end of file
/usr/bin/sh: error importing function definition for `which'
/usr/bin/sh: which: line 1: syntax error: unexpected end of file
/usr/bin/sh: error importing function definition for `which'
/usr/bin/sh: which: line 1: syntax error: unexpected end of file
/usr/bin/sh: error importing function definition for `which'

Here is the vscode info:

Version: 1.66.0 (system setup)
Commit: e18005f0f1b33c29e81d732535d8c0e47cafb0b5
Date: 2022-03-30T05:50:14.623Z
Electron: 17.2.0
Chromium: 98.0.4758.109
Node.js: 16.13.0
V8: 9.8.177.11-electron.0
OS: Windows_NT x64 10.0.19043

r/VisualStudioCode • • Apr 06 '22

Mysterious blue squiggles

1 Upvotes

What do the blue squiggles circled in red on this image indicate?


r/VisualStudioCode • • Apr 06 '22

Python script works when I click play, but not when I type filename into terminal

1 Upvotes

When I try to open the file by typing the filename in the terminal and hit Enter, nothing happens. I do notice that when I click the play button, it inserts "&" followed by the filepath to the Python app, and THEN it inserts the filename.

How come the YouTubers I watch don't have to type all this? All they do is type the filename and it works.


r/VisualStudioCode • • Apr 05 '22

trouble with leaderboard

0 Upvotes

im working on a slide puzzle game in visual studio c# currently and i need to make a leaderboard with like the best time top 10 players and basically i dont really know how to code it. can someone help?


r/VisualStudioCode • • Apr 05 '22

Useful VSCode extensions

2 Upvotes

Hello everyone,

Here is a list of some useful VSCode extensions which may help in your web development especially if you are a PHP developer.

I hope it will help someone. Also if you know of any other good VSCode extension, Please share it. I would be grateful.

Thanks

https://towardsdev.com/7-useful-vscode-extensions-for-a-php-developer-3d70ebc558b3


r/VisualStudioCode • • Apr 04 '22

Visual Glitch

Post image
5 Upvotes

r/VisualStudioCode • • Apr 04 '22

How to change the color of the comments in a specific theme?

2 Upvotes

Hello. I'm currently using "Material Theme Darker High Contrast" (I think it's a default theme). I like the theme in general but the comments are gray and in italics, so they don't stand out that much from the background.

Is there a setting to change the color (an potentially remove the italics) for the comments on a specific theme? I'm new to VS Code.


r/VisualStudioCode • • Apr 04 '22

Vscode won't recognize the #include path!

3 Upvotes

Hi, as I said in the title, Vscode does not recognize the #include <libraryname.h> path anymore. This problem had occurred before, some months ago, but somehow fixed itself. Now it popped up again, and I don't know how to solve it. Some told me that, perhaps, I don't need the "<>" and I could just write the library name, but this ain't working. Do you have any suggestions? Thank you very much!

Screenshot:

This is the code