首页 文章 精选 留言 我的

精选列表

搜索[windows],共10000篇文章
优秀的个人博客,低调大师

Android studio快捷键Windows版本

为了方便大家记住这些小技巧和快捷键,我把它写成了一个插件,欢迎大家下载使用:http://chunsheng.me/EasyShortcut/ 快捷键 描述 通用--------------------------------------------- Control + F9 Build(编译) Shift + F10 Build and run(编译运行) Shift + F9 Debug(调试) Control + Alt + Y Synchronize(同步) Control + Shift + F12 Maximize/minimize editor(最大化/最小化编辑器) Control + ` (backquote) Quick switch scheme(快速切换主题) Control + Alt + S Open settings dialogue(打开设置对话框) Control + Alt + Shift + S Open project structure dialog(打开项目对话框) Control + Tab Switch between tabs and tool window(标签和工具栏切换) 导航和搜索----------------------------------------- Press Shift twice Search everything (including code and menus)(全局搜索) Control + F Find(查找) F3 Find next(查找下一个) Shift + F3 Find previous(查找上一个) Control + R Replace(替换) Control + N Find class(搜索类) Control + Shift + N Find file (instead of class)(搜索文件) Control + F12 Open file structure pop-up(弹出所打开文件的结构) Alt + Right/Left Arrow Navigate(导航) between open editor tabs F4 / Control + Enter Jump to source(跳到源码) Shift + F4 Open current editor tab in new window(新窗口打开编辑选项卡) Control + E Recently opened files pop-up(弹出最近打开文件) Control + Shift + E Recently edited files pop-up(弹出最近编辑文件) Control + Shift + Backspace Go to last edit location(最后编辑位置) Control + F4 Close active editor tab(关闭当前编辑选项卡) Esc Return to editor window from a tool window(回到编辑窗口) Shift + Esc Hide active or last active tool window(隐藏最近活动窗口) Control + G Go to line(跳转到行) Control + H Open type hierarchy(打开类层次结构) Control + Shift + H Open method hierarchy(打开方法层次结构) Control + Alt + H Open call hierarchy(打开调用层次结构) 写代码必备------------------------------------------ Alt + Insert Generate code (getters, setters, constructors, etc....) Control + O Override methods(重写方法) Control + I Implement methods(实现方法) Control + Alt + T Surround with (if...else / try...catch / etc.) Control + minus/plus Collapse/expand current code block(折叠/展开代码块) Control + Shift + minus/plus Collapse/expand all code blocks(折叠/展开所有代码块) Control + D Duplicate current line or selection(复制当前行) Control + Space Basic code completion(基本代码补全) Control + Shift + Space Smart code completion (filters the list of methods and variables by expected type)(自动代码补全) Control + P Show parameters for selected method(显示方法参数) Control + U Go to super-method/super-class(跳转父类/方法) Control + Shift + I Open quick definition lookup(打开快速定义查找) Control + Alt + L Reformat code(格式化代码) Control + Alt + I Auto-indent lines(自动缩进行) Control + Shift + J Smart line join(自动合并行) Control + Enter Smart line split(自动拆分行) 版本管理---------------------------------------------- Control + K Commit project to VCS(提交代码到版本管理系统) Control + T Update project from VCS(从版本系统更新项目) Alt + Shift + C View recent changes(最近修改文件) Alt + ` (backquote) Open VCS popup(弹出版本管理)

优秀的个人博客,低调大师

使用Windows的Powershell下载文件

例如要将文件:http://www.51.cto.com/download/datainfo.cfg http://www.51.cto.com/download/ABK/full.ABK http://www.51.cto.com/download/FIN/full.FIN http://www.51.cto.com/download/PWR/full_of.PWR 下载到本地D:\DZHSERVER\127\CWDATA\对应目录 1、在命令行中输入 start powershell就可启动powershell了,如图所示就是powershell了 2、在powershell中我们输入一下命令 $client = new-object System.Net.WebClient $client.DownloadFile('#1', '#2') 其中, #1的位置填写文件下载地址,#2的位置填写下载的保存路径(注意一点要使用英文键盘的单引号)。在#2中,一定也要把文件名(例如:full_so.FIN)一起写进去,而不只是写一个路径。 如果下载的文件多可以直接写成脚本的形式 127_download_crontab.ps1 $client=new-objectSystem.Net.WebClient $client.DownloadFile(' $client.DownloadFile(' $client.DownloadFile(' $client.DownloadFile('http://www.51.cto.com/download/PWR/full_of.PWR','D:\DZHSERVER\127\CWDATA\download\PWR\full_of.PWR') 右击选择使用Powershell运行脚本127_download_crontab.ps1发现没有发现下载,右击编辑后点击运行脚本报错 Powershell一般初始化情况下都会禁止脚本执行。脚本能否执行取决于Powershell的执行策略。只有管理员才有权限更改这个策略。非管理员会报错 通过Get-ExecutionPolicy查看脚本执行策略;通过Set-ExecutionPolicy UnRestricted更改脚本执行策略 脚本执行策略类型为:Microsoft.PowerShell.ExecutionPolicy;通过[System.Enum]::GetNames([Microsoft.PowerShell.ExecutionPolicy])查看所有支持的执行策略: Unrestricted:权限最高,可以不受限制执行任何脚本。 Default:为Powershell默认的策略:Restricted,不允许任何脚本执行。 AllSigned:所有脚本都必须经过签名才能在运行。 RemoteSigned:本地脚本无限制,但是对来自网络的脚本必须经过签名。 现在右击选择使用Powershell运行脚本127_download_crontab.ps1就可以了。 如果要在计划任务里面设定,直接是不能运行这个脚本的,我们需要借助bat来实现,创建一个.bat的文件,里面输入调用PS的脚本: powershellC:\Users\justin\Desktop\127_download_crontab.ps1 之后,在计划任务里面设定bat的就可以了。

优秀的个人博客,低调大师

WINDOWS上通过VAGRANT练习ANSIBLE

有点曲折,但没办法,还要通过VAGRANT里的ANSIBLE建DOCKER呢。。 VagrantFile # -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure(2) do |config| config.vm.box = "ubuntu/trusty64" if (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil config.vm.synced_folder ".", "/vagrant", mount_options: ["dmode=700,fmode=600"] else config.vm.synced_folder ".", "/vagrant" end config.vm.provider "virtualbox" do |v| v.memory = 2048 end config.vm.define :dev do |dev| dev.vm.network "private_network", ip: "10.100.199.200" dev.vm.provision :shell, path: "bootstrap.sh" end if Vagrant.has_plugin?("vagrant-cachier") config.cache.scope = :box end if Vagrant.has_plugin?("vagrant-vbguest") config.vbguest.auto_update = false config.vbguest.no_install = true config.vbguest.no_remote = true end end bootstrap.sh #!/bin/bash echo "Installing Ansible..." apt-get install -y software-properties-common apt-add-repository ppa:ansible/ansible apt-get update apt-get install -y --force-yes ansible ansible hosts: [local] 127.0.0.1 ansible_ssh_pass=vagrant ansible_ssh_user=vagrant

资源下载

更多资源
优质分享App

优质分享App

近一个月的开发和优化,本站点的第一个app全新上线。该app采用极致压缩,本体才4.36MB。系统里面做了大量数据访问、缓存优化。方便用户在手机上查看文章。后续会推出HarmonyOS的适配版本。

Mario

Mario

马里奥是站在游戏界顶峰的超人气多面角色。马里奥靠吃蘑菇成长,特征是大鼻子、头戴帽子、身穿背带裤,还留着胡子。与他的双胞胎兄弟路易基一起,长年担任任天堂的招牌角色。

Nacos

Nacos

Nacos /nɑ:kəʊs/ 是 Dynamic Naming and Configuration Service 的首字母简称,一个易于构建 AI Agent 应用的动态服务发现、配置管理和AI智能体管理平台。Nacos 致力于帮助您发现、配置和管理微服务及AI智能体应用。Nacos 提供了一组简单易用的特性集,帮助您快速实现动态服务发现、服务配置、服务元数据、流量管理。Nacos 帮助您更敏捷和容易地构建、交付和管理微服务平台。

Sublime Text

Sublime Text

Sublime Text具有漂亮的用户界面和强大的功能,例如代码缩略图,Python的插件,代码段等。还可自定义键绑定,菜单和工具栏。Sublime Text 的主要功能包括:拼写检查,书签,完整的 Python API , Goto 功能,即时项目切换,多选择,多窗口等等。Sublime Text 是一个跨平台的编辑器,同时支持Windows、Linux、Mac OS X等操作系统。