Skip to content
Advertisement

Tag: visual-studio-code

javascript function to search like in vscode files

I’m trying to understand how to make a dropdown search function in javscript that works like file-search CTRL+P in vscode. The search query to be automatically including wildcards. For example i type inds and vscode finds index.js file. How to make something similar in javscript using indexOf for example? Thank you Answer What you are looking for is called fuzzy

Debugging Sanity exec with VS Code

I’m using Sanity (sanity.io headless CMS) and doing some data migration with the CLI. How do I (or, is it at all possible) to some how attach the vscode debugger and stop at breakpoints in migration scripts. I’m running the following cli migration script: sanity exec migrate.js –with-user-token. I would like to stop at breakpoints in migrate.js? I’ve managed debugging

VSCODE Javascript template string become white and lost highlight in a non deterministic way

I don’t know exactly how to express it in words to find related problems. In some cases, apparently random, when using JavaScript string templates, the text editor loses becomes white, with bold text and makes editing the code very difficult. First appearance of the problem was when I started working with javascript string for GraphQL query, then it started showing

How to intellisense alias module path in VSCode

I would like VSCode to IntelliSense the module path so I can access it by click. For example, after configurating jsconfig.json I’m able to access ./src/styled/index by importing its global path. But I couldn’t figure out how to make it work with an alias @styles My current jsconfig.json: Answer Seems I had to restart VSCode. Javascript (javascript,javascriptreact file types in

Advertisement