r/VisualStudioCode • • Mar 01 '22

Debug Chrome Extensions with vscode-js-debug in Visual Studio Code

5 Upvotes

I can't for the life of me figure out how to debug it on a real web page with a url. I just want to run and debug the example below and see how it is working.

JavaScript Debugger (Nightly) is installed in VSC

https://github.com/GoogleChrome/chrome-extensions-samples/tree/main/examples/bookmarks

this is my launch.json in Visual Studio Code

{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome",
"url": "https://developer.chrome.com/docs/extensions/mv3/devguide/",
// Here it is!
"runtimeArgs": ["--load-extension=${workspaceFolder}"]
}
]
}

my manifest.json

{
"name": "My Bookmarks",
"description": "A browser action with a popup dump of all bookmarks, including search, add, edit and delete.",
"version": "1.1",
"manifest_version": 3,
"permissions": [
"bookmarks"
],
"action": {
"default_title": "My Bookmarks",
"default_icon": "icon.png",
"default_popup": "popup.html"
},
"key": "xxxxx"
}
when "Launch Chrome" from "Run and Debug" the bookmarks menu is empty

Shouldnt I use "request": "attach", to launch Chrome with remote debugging enabled in order for the extension running from VSC to attach to it ?


r/VisualStudioCode • • Mar 01 '22

Can’t find “open with default browser” option

Post image
6 Upvotes

r/VisualStudioCode • • Mar 01 '22

VSC Double Icon on macOS

2 Upvotes

Does anyone know why when you bring up Visual Studio Code on Mac, it spawns an additional icon?

screenshot: vsc-double-icon.png


r/VisualStudioCode • • Feb 28 '22

"Trust me I use GIMP"

Post image
3 Upvotes

r/VisualStudioCode • • Feb 27 '22

How To Run JavaScript In Visual Studio Code - Guide

Thumbnail techobservatory.com
8 Upvotes

r/VisualStudioCode • • Feb 26 '22

MODULE_NOT_FOUND error. Please help me fix this.

0 Upvotes

Please can someone help me fix this error, it is currently preventing me from launching my nft collection.

node:internal/modules/cjs/loader:936

throw err;

^

Error: Cannot find module 'C:\Users\44770\hashlips_art_engine-main\utils\nftport\uploadfiles.js'

at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)

at Function.Module._load (node:internal/modules/cjs/loader:778:27)

at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)

at node:internal/main/run_main_module:17:47 {

code: 'MODULE_NOT_FOUND',

requireStack: []


r/VisualStudioCode • • Feb 26 '22

Live share vscode crash my pc!! help!!

2 Upvotes

I have a problem with this extension, when i use it like a 15, and there are people in my session, ....

my pc crash entire. 1 frezze after show me in blue screen an error with windows, anyone know why this happend?


r/VisualStudioCode • • Feb 24 '22

After setting keybindings for "Editor Font Size Zoom" from the Command Palette, I no longer can find "Editor Font Size Zoom" in the Command Palette

1 Upvotes

I wanted to set "Editor Font Size Zoom Out" to keybindings, (long story short, the initial Zoom Out I was doing "cmd + _" was zooming the side bar out too.).

Now for some reason I'm unable to locate either "Editor Font Size Zoom Out" which I haven't made keybindings yet for, or the "Editor Font Size Zoom" which I had.
Any ideas?

Thank you


r/VisualStudioCode • • Feb 23 '22

Not sure what to do with error

3 Upvotes

I'm hoping someone will be able to help me with this error, I'm not quite sure what to do or even how to do it. Thanks


r/VisualStudioCode • • Feb 22 '22

VS Code not displaying return value

2 Upvotes

My problem is that the return(); value isn't outputted.

https://www.codepile.net/pile/yVQXn02W - here is a simple program. It doesn't output anything, unless I use printf, or some other function like this. I am using Code Runner extension to compile C. Any form of help is appreciated.


r/VisualStudioCode • • Feb 22 '22

I want a custom syntax highlight to write plain text in visual code

2 Upvotes

Hi people!

Last days I'm using Visual Studio Code for writing plain text that is nothing associated with coding, just for taking notes. I would like to know if it would be too difficult to make a custom syntax highlighting for this purpose (I believe this has to do with tokenization?). Or maybe a solution fot this exists already and I don't know.

Actually, for now I would like to just highlight two things, titles and comments

My comments are just lines that starts with a "#"

And my titles are like this: 0.first_title 1.second_title 2.third_title and so on...

If I could just a symbol at the start of the line to highlight the entire line it would be enough (I could just put a symbol at the start of the titles)

I don't consider myself a programmer despite liking to play with languages, I'm a beginner. I want to know if this would be too difficult to do in VSC, But if it's too difficult to do this, just let me know


r/VisualStudioCode • • Feb 23 '22

Error Message when trying to Generate NFT Images on Visual Studio Code

0 Upvotes

Hi there everyone. Thanks for welcoming me to the group. I am trying to generate some NFTs using the Hashlips Art Engine and Visual Studio Code. I set everything up according to some youtube videos I've watched and all seems ok until I go to generate the images. I type in either "node index.js" or "npm run generate" and I receive an error message. What can be done? Mind you, I'm not a coder...I'm an artist who found videos on how to easily generate NTFs without much coding knowledge and thought I'd give it a go. Any help and assistance with this would be so very much appreciated and I thank you all kindly. Please don't be too tough on me...again, I'm not a coder just a guy trying his best :s :)
Oh I'm also using a Mac if that helps any.

Below is the Error that comes up.

npm run generate

> hashlips_art_engine@1.1.1 generate

> node index.js

(node:3939) [DEP0147] DeprecationWarning: In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: true }) instead

(Use `node --trace-deprecation ...` to show where the warning was created)

node:fs:1392

handleErrorFromBinding(ctx);

^

Error: ENOENT: no such file or directory, scandir '/Users/bradleyhansraj/Desktop/RENDERS/hashlips/hashlips_art_engine-main/layers/03Face /'


r/VisualStudioCode • • Feb 21 '22

Work in an Android tablet

0 Upvotes

Hey !

I work daily with visual studio code + git plugins.
Could I use the same work technologies in an Android OS tablet ?
In windows OS or mac OS I could, but I am not sure if I can do it in an Android OS tablet

Thanks in advance !


r/VisualStudioCode • • Feb 20 '22

How to make my Terminal look clean and minimal

3 Upvotes

I want my terminal to only show the output of the code and nothing else, im on windows


r/VisualStudioCode • • Feb 18 '22

I’m new to visual studios can someone help me figure out how to write in the output section when doing input() command for example?

2 Upvotes

r/VisualStudioCode • • Feb 17 '22

platform io

0 Upvotes

how do i set the Arduino ide to platform io


r/VisualStudioCode • • Feb 15 '22

I made a VSCode extension to find functional and logic bugs in Python/JS code

23 Upvotes

r/VisualStudioCode • • Feb 16 '22

I need help but don't know were to start

1 Upvotes

Good morning,

I'm trying to install Marlin on my Ender 3 3D printer so I can use my CR Touch to auto level my bed. This stuff is totally new to me so I'm sure I screwed up somewhere but I'm not sure were. I have tried it on both of my laptops and the same thing happens. I wish I could tell you more about the problem, but I dont know how to explain it, so I'm going to post some pics and hopefully someone will be able to understand what I have been doing wrong.

Thanks for reading and I hope someone might be able to help


r/VisualStudioCode • • Feb 15 '22

any idea why the visual studio code project directory ui displays differently for this scenario?

2 Upvotes

I'm working on a React project in Visual Studio Code. For some reason, the subdirectory structure that I just added displays subdirs via slashes () between subdirs on a single node of the treeview as opposed to rendering the subdirs in a treeview. Any idea why VS Code would do this? Other subdir structures in the project display as normal treeviews as expected


r/VisualStudioCode • • Feb 15 '22

Problems with C++ on Visual Studio Code with MinGW

4 Upvotes

Hi, I just started using Visual Studio code with MinGW-W64 and I followed the installation guide on the official website (https://code.visualstudio.com/docs/cpp/config-mingw#_prerequisites). When I try to run the C++ hello world source code, the following message appears. How do I fix this?


r/VisualStudioCode • • Feb 13 '22

VS Code Extension

6 Upvotes

Hello everyone,

I have made a list of some useful VSCode extensions.

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://farhan-tanvir.medium.com/10-useful-vs-code-extension-to-make-life-easier-b0c156a0e763


r/VisualStudioCode • • Feb 11 '22

Very new at this

5 Upvotes

Hi everyone,

I've just started the book c language for dummies and I'm trying to convince myself that programming is not out of reach which I starting to believe that maybe it is... Anyway, I use Visual Studio Code for my exercise and I'm now learning about the input and output and the getchar function. When I try to run the program:

#include <stdio.h>

int main() {

int c;

printf("I'm waiting for a character: "); c = getchar(); printf("I waited for the '%c' character.\n",c); return(0);

}

I then get a text file that can't be read and it says: the file is not displayed in the editor because it is either binary or uses an unsupported text encoding. I tried to download the hex editor but from that, I get only the binary (yep). I'm suppose to get a text that says :

I'm waiting for a character: C
I waited for the 'C' character.

Please help a brother that is kind of ridiculing himself in front of the encouragement of its wife.

Cheers!


r/VisualStudioCode • • Feb 07 '22

help w autocomplete drop down menu idk what its called

3 Upvotes

Is there any way to turn off that drop down menu that pops up when you're typing code? It's very annoying when you're typing and finish a line and the menu comes in the way


r/VisualStudioCode • • Feb 06 '22

how do you make this symbol?

Post image
26 Upvotes

r/VisualStudioCode • • Feb 06 '22

Create a Bitcoin transaction in golang program on VS

Thumbnail m.youtube.com
0 Upvotes