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
3 votes
1 answer
81 views

Using PyQGIS 3 in Visual Studio Code

I did all the steps in the video below: https://www.youtube.com/watch?v=qobogVuXtJU&list=PLbGkCPlkC_XTAUG5HC1WPhxMuZQnBQ7jU&index=1&t=308s When I run the full Python file, it throws this: ...
Zoltán Dévény's user avatar
1 vote
1 answer
76 views

Initial zoom to GeoJSON object from file (.js) in Leaflet

I am building a viewer with Leaflet API and OpenStreetMap base. I want that when I enter this viewer it shows me immediately in the initial visualization the extension of my layer that I am using. For ...
MrShaggy87's user avatar
0 votes
1 answer
36 views

Is it possible to take a web map created via the qgis2web plugin & edit it in Visual Studio Code

After I export a map via qgis2web, is it possible to edit the code and add to it in Visual Studio Code? If so, how do i open it in VS? is it just the index.html file?
jaymesmc's user avatar
1 vote
0 answers
206 views

How to clone a copy using ArcGIS API for Python

What I am trying to do: Take a layer from ArcGIS Enterprise, clone it as a temporary file, overwrite a file in SQL DB, delete temporary file. What I have tried so far: def overwrite_existing_layer(...
ZephyrZ's user avatar
  • 89
0 votes
0 answers
84 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
192 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
1k 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 ...
ReutKeller's user avatar
  • 2,107
0 votes
0 answers
185 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
600 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
65 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
7 votes
1 answer
565 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
4 votes
0 answers
613 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,497
2 votes
0 answers
247 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
1k 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
376 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
  • 770
13 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
  • 450
5 votes
1 answer
5k 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
2k 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
  • 491
3 votes
1 answer
794 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,497
0 votes
1 answer
880 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
3k 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
3k 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
  • 287
0 votes
1 answer
2k 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
10k 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
  • 612
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