当前位置:网站首页>vscode小技巧
vscode小技巧
2022-04-23 13:07:00 【step step】
title: vscode小技巧
date: 2022-04-12 16:07:53
tags: vscode
vscode小技巧
一、vscode设置python运行时的相对路径
问题:右键运行时vscode默认为工程目录,这样相对路径都是错的。
解决方法:
- 在终端cd到该文件所在的路径。这样每换一个目录就用cd一次。
- 在setting.json加入
- 安装koroFileHeader插件
- 右下角settings->settings->搜索fileheader->User->settings.json
{
"python.terminal.executeInFileDir": true,
}

版权声明
本文为[step step]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_42618420/article/details/124351922
边栏推荐
- The El table horizontal scroll bar is fixed at the bottom of the visual window
- Mysql数据库的卸载
- Introducing vant components on demand
- Utils of various date conversion
- Go language array operation
- 解决Oracle中文乱码的问题
- STM32 tracking based on open MV
- After the data of El table is updated, the data in the page is not updated this$ Forceupdate() has no effect
- Office 2021 installation package download and activation tutorial
- PC starts multiple wechat at one time
猜你喜欢

Software testing weekly (issue 68): the best way to solve difficult problems is to wait and see the changes and push the boat with the current.

Custom nail robot alarm

Recovering data with MySQL binlog

100 GIS practical application cases (51) - a method for calculating the hourly spatial average of NC files according to the specified range in ArcGIS

Pytorch: a pit about the implementation of gradreverselayer

AUTOSAR from introduction to mastery 100 lectures (51) - AUTOSAR network management

内核错误: No rule to make target ‘debian/canonical-certs.pem‘, needed by ‘certs/x509_certificate_list‘
![[untitled] make a 0-99 counter, P1 7 connected to key, P2 connected to nixie tube section, common anode nixie tube, P3 0,P3. 1. Connect the nixie tube bit code. Each time you press the key, the nixie](/img/d1/b0ec21419db0cd3641f5fae8458c50.png)
[untitled] make a 0-99 counter, P1 7 connected to key, P2 connected to nixie tube section, common anode nixie tube, P3 0,P3. 1. Connect the nixie tube bit code. Each time you press the key, the nixie

Huawei cloud MVP email

Van uploader upload picture implementation process, using native input to upload pictures
随机推荐
AUTOSAR from introduction to mastery 100 lectures (50) - AUTOSAR memory management series - ECU abstraction layer and MCAL layer
Mysql8 installation
7_ The cell type scores obtained by addmodule and gene addition method are compared in space
Golang implements MD5, sha256 and bcrypt encryption
100 GIS practical application cases (51) - a method for calculating the hourly spatial average of NC files according to the specified range in ArcGIS
The filter() traverses the array, which is extremely friendly
Go iris framework implements multi service Demo: start (listen to port 8084) service 2 through the interface in service 1 (listen to port 8083)
STM32 tracking based on open MV
V-model binding value in El select, data echo only displays value, not label
Hanlp word splitter (via spark)
4.22学习记录(你一天只做了水题是吗)
Connect orcale
FFmpeg常用命令
Jupiter notebook installation
mui 微信支付 排坑
mysql支持ip访问
Customize classloader and implement hot deployment - use loadclass
(personal) sorting out system vulnerabilities after recent project development
GIS practical tips (III) - how to add legend in CASS?
Custom nail robot alarm