很多时候敲了一大堆代码,结果手贱或者电脑没电或者电脑突然崩溃,如果没有保存,只能说GG.好在VSCode有自动保存代码的功能,而且有好几种自动保存的模式选择,设置方法如下: 进入">文件>首选项>设置",之后你可以搜索关键字"save"找到如下 可以看到一共有4种选择: off:关闭自动保存,这是默认选项 afterDelay:会每隔若干秒保存一次 OnFocusChange: 编辑器是去焦点时自动保存文件,比如说你打开了多个文件,你编辑好了A,然…
Chrome 文件下载 Chrome浏览器类似,设置其options: download.default_directory:设置下载路径 profile.default_content_settings.popups:设置为 0 禁止弹出窗口 options = webdriver.ChromeOptions() prefs = {'profile.default_content_settings.popups': 0, 'download.default_directory': 'd:\\'…
1.手动重加载文件的命令是:e! 2.一劳永逸的方法是:vim提供了自动加载的选项 autoread,默认关闭. 在vimrc中添加 set autoread即可打开自动加载选项,相关选项: :help 'autoread' :help timestamp :help FileChangedShell :help :checktime 另外,vim使用tag进行切换时,如果当前文件修改未保存,会提示需保存后才能跳转. 在vimrc中添加 set autowriteall 可使切换文件时,修改的文…
1.android下junit测试框架配置 单元测试需要在手机中进行安装测试 (1).在清单文件中manifest节点下配置如下节点 <instrumentation android:name="android.test.InstrumentationTestRunner" android:targetPackage="com.example.demo1" /> 上面targetPackage指定的包要和应用的package相同. (2)在清单文件中ap…
一 打开文件 Stream myStream = null; OpenFileDialog openFileDialog1 = new OpenFileDialog(); openFileDialog1.InitialDirectory = "d:\\"; openFileDialog1.Filter = "ext files (*.txt)|*.txt|All files(*.*)|*>**"; openFileDialog1.FilterIndex = 2…
一.打开文件 Stream myStream = null;            OpenFileDialog openFileDialog1 = new OpenFileDialog();            openFileDialog1.InitialDirectory = "d:\\";            openFileDialog1.Filter = "ext files (*.txt)|*.txt|All files(*.*)|*>**"…
一.打开记事本,把下面的代码复制进去 set fso=createobject("scripting.filesystemobject") set ws=createobject("wscript.shell") on error resume next do wscript.sleep 1000 if fso.driveexists("U盘的盘符") then fso.copyfile "U盘的盘符加*号","要复…
初次使用phpstorm, 1.配置ftp时,远程文件要用/ftp用户名/文件夹名: 2.由于版本管理的原因(猜测),直接从本地原有文件修改时各种办法都无法上传,结果从服务器上下载一份再修改,解决这个问题. 目前的问题,ctrl+s保存后,总是提示" the file has been modified .upload ?",还需要点击一下上传, 为何不自动上传? 上面的问题解决了,我用的mac版,快捷键不同,用 shift +option + q 自动上传…
1.a.py文件存放的路径下为(D:\Auto\eclipse\workspace\Testhtml\Test) 2.通过os.getcwd()获取的路径为:D:\Auto\eclipse\workspace\Testhtml\Test 3.使用os.getcwd()[:-4]截取到的路径为:D:\Auto\eclipse\workspace\Testhtml\ 4.使用下面的命令则在3步骤下新建report文件夹,并将执行的结果会自动保存在report文件夹下 ] +'report\\' #获…
public enum FileType { /** * JEPG. */ JPEG("FFD8FF"), /** * PNG. */ PNG("89504E47"), /** * GIF. */ GIF("47494638"), /** * TIFF. */ TIFF("49492A00"), /** * Windows Bitmap. */ BMP("424D"), /** * CAD. */ DWG(…