As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [visual-studio-code]

Visual Studio Code is an open source text editor available for Linux, OS X, and Windows. It includes support for debugging, embedded Git Control, various extensions and rich development experiences such as intelligent code completion. It is open source driven by Microsoft, built on Electron like GitHub's Atom.

Filter by
Sorted by
Tagged with
0 votes
0 answers
45 views

QGIS Python via VS Code - No GUI

I am fairly new to Python, and have been writing Python codes successfully within the QGIS Python Console. I want to be able to execute codes outside of the QGIS GUI through VS Code with the Python ...
30136353's user avatar
0 votes
1 answer
120 views

VS Code re-installation: Pylance now complains about arcpy, but intellisense, code completion, and script execution works ok

I was recently victim to this bug where VS Code (Insiders) seems to uninstall itself. After a reinstallation, most of my settings and preferences were retained, but Pylance is now complaining about ...
mfcallahan's user avatar
3 votes
1 answer
590 views

Cannot visualize map with geemap when using VS Code

I am using Jupyter notebook on VS. I have generated script that gets an image collection, does some calculations on it and generates one image (ee.image.Image). I want to display it on a map. When I ...
Reut's user avatar
  • 1,910
0 votes
0 answers
114 views

gdal_calc.py not working with VSCode/Conda on Windows

I'm passing a simple gdal_calc.py command line argument to os.system() in a python script. However when I run the script, nothing is generated and the gdal_calc.py source script opens automatically: ...
Aragon's user avatar
  • 11
0 votes
0 answers
369 views

Trying to configure ArcGIS Pro/ArcPy + VS Code, but can't activate conda environment. How do I correctly do this?

I'm attempting to configure VS Code for ArcPy/ArcGIS Pro development, and things have been going ok so far, however I have run into an issue I am not sure how to resolve. I'm also curious to hear how ...
mfcallahan's user avatar
1 vote
0 answers
54 views

Adding features to a vectorlayer using PyQGIS in VSCode

I'm trying to create a plugin that generate a vector layer with geometry using 2 other layers, the first one 'layer_segment'contain features with geometries to dissolve based on common field value ...
Abd El Oihabe's user avatar
5 votes
1 answer
443 views

VS Code Intellisense with modern arcpy syntax

Does anyone know to get VS Code's intellisense to work with modern arcpy syntax? This post addresses VS Code not recognizing the correct interpreter at all: VS Code autocomplete for ArcPy But that isn'...
itsrainingschmen's user avatar
3 votes
0 answers
351 views

Looking for definitive way to enable ALL QGIS module access in VS Code (Windows 10)

I'm having trouble importing and getting code inspection/autocompletion working for all the PyQGIS modules I need to do scripting in VS Code. After looking at these questions: Understanding qgis....
auslander's user avatar
  • 1,425
2 votes
0 answers
175 views

Setting up environment for python MapScript development

I'm trying to setup a virtual environment for developing against the Python bindings of MapScript on Windows. So far, I've tried several things in various combinations: Install MapScript via pip ...
mael's user avatar
  • 21
1 vote
0 answers
875 views

Using PyQGIS in Visual Studio Code

I have a standalone installation of QGIS 3.10.14 and I would like to use PyQGIS while working in Visual Studio Code. I have already tried customizing settings file: { "python.pythonPath": &...
Catallena's user avatar
1 vote
1 answer
332 views

Visual Studio Code Upgrading to 1.56.0... Issues with Environment Windows

Prior to the last Visual Studio Code update, I was able to set the windows environment variables. Now with the new update I can't and I don't know what to do. My code is: { "folders": [ ...
RBenet's user avatar
  • 710
12 votes
2 answers
2k views

VS Code autocomplete for ArcPy

I would like to get suggestions/autocomplete as I am typing methods and functions in VS Code for arcpy. Currently, IntelliSense would suggest only functions or methods that I have been using within ...
Kumbra's user avatar
  • 440
5 votes
1 answer
4k views

ArcGIS Pro Python Interpreter Setup with Visual Studio Code

I'm fairly new to Stack Exchange and not very well-versed in IDE's. I'm struggling to set up the ArcGIS Pro Python interpreter with Visual Studio Code. I have ArcGIS Pro 2.4.3 and VSC 1.44.2. I'm ...
dgray's user avatar
  • 91
3 votes
0 answers
1k views

Viewing GeoPandas Dataframe in VScode or PyCharm like Pandas Dataframes

I'm not sure if this is a missing feature or something that I couldn't figure out so I wanted to get some help; I started learning geopandas library, now I'm following some tutorials I realized that ...
puredata's user avatar
  • 481
3 votes
1 answer
628 views

Connecting QGIS libraries to external IDE under Linux

The official documentation on the QGIS site states: On Linux there is no additional configuration needed to develop plugins. However, this is not the case, as after a fresh QGIS install and ...
auslander's user avatar
  • 1,425
0 votes
1 answer
758 views

Autocomplete/intellisense OpenLayers in Visual Studio [closed]

How can I enable autocomplete in Visual Studio Code when using OpenLayers?
Andrewchi's user avatar
2 votes
1 answer
2k views

Setup QGIS 3 and Visual Studio Code plugin development (Windows)

I try to setup QGIS 3 with 2 bat file like that @echo off SET OSGEO4W_ROOT=C:\OSGeo4W64 call "%OSGEO4W_ROOT%"\bin\o4w_env.bat call "%OSGEO4W_ROOT%"\apps\grass\grass76\etc\env.bat path %PATH%;%...
Cá Khô's user avatar
3 votes
2 answers
2k views

Debug QGIS3 plugin with Visual Studio Code

I would like debug QGIS plugin using Visual Studio Code. I have Win10 and QGIS 3.4.4. I followed the instructions written in these two sites: How to setup QGIS 3 and Visual Studio Code plugin ...
PaolaB's user avatar
  • 277
0 votes
1 answer
1k views

Unable to run ArcPy in VS Code? [closed]

I am having some trouble running arcpy in VS Code. When I run my simple test scrtipt: import arcpy in_shp = r'S:\CVT\ChesterfieldTwp\Data\GIS\Layers\Utilities\SanitarySewer.shp' for field in arcpy....
adoezema's user avatar
4 votes
2 answers
2k views

QGIS Intellisense in Visual Studio Code

I'm trying to get QGIS API intellisense in VS Code IDE but it doesn't work. I'm using QGIS 3.4 and Windows 10. I followed the instructions from this link: http://gis-expert.com/wp/2018/10/15/how-to-...
adlova's user avatar
  • 51
8 votes
7 answers
9k views

How to setup Visual Studio Code (Windows) for PyQGIS 2 or 3?

I'm trying to use Visual Studio Code (VSC) as IDE for my QGIS plugins with the Python extension, but something doesn't work as expected. I've been reading about the PyCharm config from Gary S. but I ...
Guts's user avatar
  • 592
1 vote
2 answers
2k views

Is there an editor for Leaflet JavaScript that has intellisense functionality?

Is there an editor for Leaflet JavaScript that has intellisense functionality? I've tried both Visual Studio 2015 and Visual Studio Code ... in 2015, if I type code like var geojsonlayer = L and ...
SteveC's user avatar
  • 547