作为开发人员,您对 vanilla Windows 安装进行了哪些更改?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/344468/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 11:42:50  来源:igfitidea点击:

As a developer, what changes do you make to a vanilla Windows install?

windowsconfiguration

提问by Roddy

When I get a vanilla Windows system, there's a bunch of stuff I change to make it more developer-friendly.

当我得到一个普通的 Windows 系统时,我会更改很多东西以使其对开发人员更友好。

Some of it I remember every time, other stuff I only do as and when.

其中一些我每次都记得,其他一些我只在某些时候做。

Examples:

例子:

  • Show extensions of all file types
  • Make hidden and system file visible
  • Turn off Windows Defender
  • 显示所有文件类型的扩展名
  • 使隐藏和系统文件可见
  • 关闭 Windows Defender

I seem to remember a blog post from Jeff on this topic, but can't locate it!

我似乎记得杰夫关于这个主题的一篇博文,但找不到它!

What else do you do, and do you have any tools that automate this process?

你还做什么,你有什么工具可以自动化这个过程?

回答by PhiLho

Indeed I do the above, plus deactivating Zip support (regsvr32 /u zipfldr.dll), activating the underscore on Alt shortcuts (Advanced Appearance), replacing Courier New by Andale Mono (replace with your favorite font) in all program settings (after installing it, of course), installing my favorite utilities (UnxUtils, Sysinternals', SciTE, FileMenu Tools which has Command line here and lot of other goodies, etc.) and so on.
Oh, and indeed also deactivate dual keyboard support (French/English), deactivate task grouping, install VirtuaWin (4 desktops), CLCL (clipboard manager), AutoHotkey and my favorite macros, and lot of other freewares, more or less must have.

确实我做了上述,加上停用 Zip 支持 ( regsvr32 /u zipfldr.dll),激活 Alt 快捷方式上的下划线(高级外观),在所有程序设置中将 Courier New 替换为 Andale Mono(替换为您最喜欢的字体)(当然是安装后),安装我最喜欢的实用程序(UnxUtils、Sysinternals'、SciTE、FileMenu 工具,这里有命令行和许多其他好东西等)等等。
哦,确实还停用双键盘支持(法语/英语),停用任务分组,安装 VirtuaWin(4 个桌面)、CLCL(剪贴板管理器)、AutoHotkey 和我最喜欢的宏,以及许多其他免费软件,或多或少必须拥有。

No automation, alas.

没有自动化,唉。

回答by Nathan

I install Cygwinto have *nix command line tools and Xemacsto have a useful editor.

我安装Cygwin以获得 *nix 命令行工具和Xemacs以获得有用的编辑器。

回答by Gavin Miller

I install:

我安装:

回答by Daniel Earwicker

The first thing I do is open a command prompt and then open the properties for it:

我做的第一件事是打开命令提示符,然后打开它的属性:

  • Switch on Quick Edit. Why is this off by default?
  • Increase the window size. Why limit it to the size of a postage stamp?
  • Increase the vertical buffer to the maximum possible. Why limit it to a few hundred lines?
  • Change the foreground colour to white instead of grey. Why make it less readable than it could be?
  • 打开快速编辑。为什么默认关闭?
  • 增加窗口大小。为什么将其限制为邮票的大小?
  • 将垂直缓冲区增加到最大可能。为什么将其限制为几百行?
  • 将前景色改为白色而不是灰色。为什么让它的可读性比它本来的要低?

In summary: WHY?

总结:为什么?

回答by rmeador

I wipe it and install Linux. Everyone is always amazed by how productive I can be. It's because I don't spend half my time fighting with the machine.

我擦除它并安装Linux。每个人总是对我的工作效率感到惊讶。这是因为我没有花一半的时间和机器打架。

回答by Tom

Using the Add\Remove Windows Components in Control Panel, I always remove...

使用控制面板中的添加\删除 Windows 组件,我总是删除...

  • Games
  • Document Templates
  • MSN Explorer
  • Outlook Express
  • 游戏
  • 文件模板
  • MSN资源管理器
  • 展望快车

For the look and feel I...

对于外观和感觉,我...

  • Revert to the classic start menu; however, if it's Vista, I leave it as is because I like the indexed search feature.
  • Revert to a classic desktop with large icons and make sure that My Computer is the first icon (versus My Documents)
  • I also perform the things you mentioned above
  • 恢复到经典的开始菜单;但是,如果是 Vista,我会保持原样,因为我喜欢索引搜索功能。
  • 恢复到带有大图标的经典桌面,并确保我的电脑是第一个图标(相对于我的文档)
  • 我也执行你上面提到的事情

Before installing any software I...

在安装任何软件之前,我...

  • Install any outstanding Windows updates
  • Run a Disk Clean Up
  • Run Disk Defrag
  • Setup scheduled tasks for Clean Up, Defrag, and other personal tools
  • 安装任何未完成的 Windows 更新
  • 运行磁盘清理
  • 运行磁盘碎片整理
  • 为清理、碎片整理和其他个人工具设置计划任务

For tools (outside of my IDEs and other necessary development tools), I install..

对于工具(在我的 IDE 和其他必要的开发工具之外),我安装..

  • TweakUI
  • IE6, IE7, Safari, Chrome, Opera, and Firefox
  • Install the set of Firefox plug-ins I always use for development
  • 'Open Command Prompt Here' shell extension
  • Install Consolas and set it as the default font for my editors (IDEs, Notepad++, etc)
  • 调整用户界面
  • IE6、IE7、Safari、Chrome、Opera 和 Firefox
  • 安装我一直用于开发的 Firefox 插件集
  • “在此处打开命令提示符”外壳扩展
  • 安装 Consolas 并将其设置为我的编辑器(IDE、Notepad++ 等)的默认字体

回答by rp.

  • Install Consolas font and turn on (and tune) ClearType.
  • Install ZoomItto magnify display during presentations.
  • Install FireFox/Firebug
  • Install XYplorerWin Explorer alternative (can't live without it!)
  • Install DeskPinsto be able to make any Window temporarily topmost.
  • Make sure OneNote got installed with Office.
  • Install Visio.
  • Install favorite editor (whatever it is at the time, currently SCiTE).
  • Install 7Zip.
  • Fix Windows colors to suit me and put picture of RatPack (Dean's my hero) as wallpaper.
  • 安装 Consolas 字体并打开(并调整)ClearType。
  • 安装ZoomIt以在演示期间放大显示。
  • 安装火狐/萤火虫
  • 安装XYplorerWin Explorer 替代品(不能没有它!)
  • 安装DeskPins可以使任何 Window 暂时处于最顶层。
  • 确保 OneNote 与 Office 一起安装。
  • 安装 Visio。
  • 安装最喜欢的编辑器(无论当时是什么,目前是 SCiTE)。
  • 安装 7Zip。
  • 修复 Windows 颜色以适合我并将 RatPack(Dean's my hero)的图片作为墙纸。

回答by Knobloch

Disable shortcuts to FilterKeys, StickyKeys, and ToggleKeys - nothing frustrates me more than having to deal with that cruddy feature because I push the shift key down several times while I'm thinking or hold it down for eight seconds (again, while thinking) before I start typing!

禁用 FilterKeys、StickyKeys 和 ToggleKeys 的快捷方式 - 没有什么比不得不处理那个粗糙的功能更让我沮丧的了,因为我在思考之前按下了几次 shift 键或按住它八秒钟(再次,在思考时)我开始打字!

Change the default action for Folder to explore instead of open.

将文件夹的默认操作更改为探索而不是打开。

回答by Knobloch

over the years i have arrived to the decision that i do as little customization as possible since workplaces change and computers change (both at home and at work).

多年来,由于工作场所的变化和计算机的变化(在家中和工作中),我决定尽可能少地进行定制。

i used to do all kinds of crazy tweaks with litestep, setting up partitions, etc. these days i pare it down to the basics, and it does not take me long to setup a machine and have a familiar environment.

我曾经用 litestep 做各种疯狂的调整,设置分区等。这些天我把它精简到基础,而且我很快就设置了一台机器并拥有一个熟悉的环境。

in addition to the usual "win32dev" setup (classic scheme, optimized for performance, no special effects, show all files, details in explorer views, blue background, etc) i have the following stack:

除了通常的“win32dev”设置(经典方案,性能优化,无特殊效果,显示所有文件,资源管理器视图中的详细信息,蓝色背景等)我还有以下堆栈:

  • cygwin (gcc, vim, curl, wget, perl/ruby/python, svn, git, ssh, netcat, etc; rxvt for terminal)
  • ffox + adblock + dev plugins
  • clipx for simple stack-like clipboard with previews
  • textpad + a few basics syntax highlighters
  • virtuawin - the only minimal window manager that does all i need and nothing more
  • autoHotKey for basic app shortcuts
  • procexp to replace task manager
  • all other sysinternals tools
  • tortoise svn
  • putty + agent + keys
  • 7zip
  • keepass
  • wireshark
  • cygwin(gcc、vim、curl、wget、perl/ruby/python、svn、git、ssh、netcat 等;rxvt 用于终端)
  • fox + adblock + 开发插件
  • clipx 用于带有预览的简单堆栈式剪贴板
  • textpad + 一些基础语法高亮
  • virtuawin - 唯一的最小窗口管理器,可以满足我的所有需求,仅此而已
  • 用于基本应用程序快捷方式的 autoHotKey
  • procexp 替换任务管理器
  • 所有其他系统内部工具
  • 乌龟 svn
  • 腻子 + 代理 + 钥匙
  • 7zip
  • 通票
  • 线鲨

everything i install by hand goes into c:\programs (for easy no-space, lowercase paths).

我手工安装的所有东西都进入 c:\programs (为了方便无空格,小写路径)。

回答by Sam Hasler

Command line scripts

命令行脚本

For storing scripts that I use from the command line I create a Command Line Scriptsdirectory under Program Files and add it to the PATH environment variable. I use the following batch file for listing and editing those scripts:

为了存储我从命令行使用的脚本,我Command Line Scripts在 Program Files 下创建了一个目录并将其添加到 PATH 环境变量中。我使用以下批处理文件列出和编辑这些脚本:

@echo off
setlocal

set UTILPATH=C:\Program Files\System Tools\Command Line Utilities

if not "x%1"=="x" (

start "" "notepad" "%UTILPATH%\%1.bat"

) else (

dir /b "%UTILPATH%" | grep -v com.bat | grep -P "(exe|bat|cmd)" | sed "s/\.\(exe\|bat\|cmd\)//"
echo.

)

(note that the filtering of the directory listing depends on some unix commands I have installed via Cygwin)

(请注意,目录列表的过滤取决于我通过Cygwin安装的一些 unix 命令)

I give it the name com.bat, (short for command) then I can:

我给它命名为 com.bat,(命令的缩写)然后我可以:

  • list the scripts in that directory by typing comat the command prompt
  • edit any script in the list by typing com script-nameat the command prompt*, similarly:
  • create new scripts in that directory by typeing com new-script-nameat the command prompt*
  • and if I ever need to edit com.bat I just type com com
  • 通过com在命令提示符下键入列出该目录中的脚本
  • 通过com script-name在命令提示符*中键入来编辑列表中的任何脚本,类似地:
  • 通过com new-script-name在命令提示符下键入在该目录中创建新脚本*
  • 如果我需要编辑 com.bat 我只需输入 com com

* As I'm running Vista I have to use an elevated command prompt as directories under Program Filesare protected. For a quick way to launch an elevated command prompt, simply press the Win key; type cmd; press Ctrl+Shift+Enter; and then hit Alt+Cto confirm the elevation prompt. Six keystrokes to an elevated command prompt! ([via][4])

* 当我运行 Vista 时,我必须使用提升的命令提示符,因为下面的目录受到Program Files保护。要快速启动提升的命令提示符,只需按Win key; 类型cmd; 按Ctrl+Shift+Enter; 然后点击Alt+C确认提升提示。六次击键即可提升命令提示符!([通过][4])

Startup Script

启动脚本

One of the scripts I store in my Command Line Scriptsdirectory is a script that is run when I log in to windows (via the Task Scheduler, type Taskin the Vista start menu). I use that script to set up several virtual drivesusing the substcommand to directories I access frequently or want a quick way to access on the command prompt or for shortening path namesin compiler warnings, logs or debug output.

我存储在Command Line Scripts目录中的脚本之一是在我登录到 Windows 时运行的脚本(通过Task Scheduler,Task在 Vista 开始菜单中键入)。我使用该脚本使用subst命令将多个虚拟驱动器设置为我经常访问的目录,或者想要在命令提示符下快速访问或缩短编译器警告、日志或调试输出中的路径名

My Startup script looks something like this:

我的启动脚本如下所示:

@setlocal
@set _MYDOCS_=%USERPROFILE%\Documents

@REM Note: first delete the drives so I can run script again
@REM       to fix drives that failed to get mapped

subst /d W:
subst /d T:
subst /d S:
subst /d R:
subst /d N:
subst /d L:
subst /d H:
subst W: "%_MYDOCS_%\Work\SVN Working Copy\Website\trunk\www"
subst T: "%_MYDOCS_%\Work\SVN Working Copy\project 1\trunk"
subst S: "%_MYDOCS_%\Work\SVN Working Copy"
subst R: "%_MYDOCS_%\Work\SVN Working Copy\project 2\branches.50"
subst N: "%_MYDOCS_%\Work\SVN Working Copy\project 2\trunk"
subst L: "%_MYDOCS_%\Work\"
subst H: "%_MYDOCS_%\My Projects\Haslers.info\Working Copy"

Note that subst can be a little temperamental and occasionally the drives don't get created and I have to run the startup script again manually.

请注意, subst 可能有点脾气暴躁,有时无法创建驱动器,我必须再次手动运行启动脚本。