如何禁止VS显示“You have mixed tabs and spaces. Fix this?”

如何禁止VS显示“You have mixed tabs and spaces. Fix this?”

VS2013 版本的解决方案:

Vs2013  IDE下,编辑C++的工程源码,在打开文件的时候,会出现 “ you have mixed tabs and spaces fix this ”, 然后给出三个选项 Tabify、Untabify、Don‘t show again。尤其是在打开其他编辑器编写的C++代码,会经常出现这个问题。

问题原因是在使用VS2013 IDE默认设置时,tabs 符会自动转换成空格符,系统需要进行提示,如果选择"untabily",会将所有的tabs符转换成空格符,然后下次再打开时候,就不在提示,如果选择tabify,则保留tabs符,下次再打开文件时仍要进行提示。

解决方法:

Tools(工具) -> Options(选项) -> Productivity Power Tools -> Turn Extensions On/Off-> fix mixed tabs

将其关闭即可,然后世界就清静了。



VS2017版本 的解决方案:

点击工具---扩展和更新 , 在插件栏目里找到 Fixed  Mixed Tabs, 然后将其卸载掉, 之后就再也不会看到烦人的Tab和空格的转换提示了

参考: https://lonelycoding.com/how-can-i-prevent-the-you-have-mixed-tabs-and-spaces-fix-this-message/

原文地址:https://www.cnblogs.com/tsingke/p/9750314.html

时间: 2024-08-11 21:06:42

如何禁止VS显示“You have mixed tabs and spaces. Fix this?”的相关文章

禁止apache显示目录索引

1)修改目录配置: 复制代码 代码如下: <Directory "D:/Apache/blog.phpha.com">Options Indexes FollowSymLinks # 修改为: Options  FollowSymLinks    AllowOverride None    Order allow,deny    Allow from all</Directory> 只需要将上面代码中的 Indexes 去掉,就可以禁止 Apache 显示该目录

windows server 2003 禁止开机显示“关闭事件跟踪”

关机事件跟踪(Shutdown   Event   Tracker)也是Windows   server   2003区别于其他工作站系统的一个设置,对于服务器来说这是一个必要的选择,但是对于工作站系统却没什么用,我们同样可以禁止它.   打开”开始“Start   -> ”运行“   Run   -> 输入”gpedit.msc   “,在出现的窗口的左边部分,选择   ”计算机配置“(Computer   Configuration   )->   ”管理模板“(Administra

android GridView禁止上下滑动以及禁止滚动条显示的方法。

 一. android处理鼠标滚轮事件,并不是如下的函数: 1) public boolean onKeyDown(int keyCode, KeyEvent event) 2) public boolean dispatchKeyEvent(KeyEvent event) 3) public boolean onTouchEvent(MotionEvent event) 而是如下的函数 publicboolean onGenericMotionEvent(MotionEvent event):

禁止apache显示目录索引 apache禁止列目录

禁止apache显示目录索引 apache禁止列目录 禁止Apache显示目录索引的常见的3种方法. 要实现禁止Apache显示目录索引,只需将Option中的Indexes去掉即可. 禁止Apache显示目录索引,禁止Apache显示目录结构列表,禁止Apache浏览目录,这是网上提问比较多的,其实都是一个意思. 下面说下禁止Apache显示目录索引的常见的3种方法.要实现禁止Apache显示目录索引,只需将 Option 中的 Indexes 去掉即可.1)修改目录配置:<Directory

禁止apache显示目录索引的常见方法(apache禁止列目录)

禁止Apache显示目录索引,禁止Apache显示目录结构列表,禁止Apache浏览目录,这是网上提问比较多的,其实都是一个意思.下面说下禁止禁止Apache显示目录索引的常见的3种方法. 要实现禁止Apache显示目录索引,只需将 Option 中的 Indexes 去掉即可. 1)修改目录配置: 只需要将上面代码中的 Indexes 去掉,就可以禁止 Apache 显示该目录结构.用户就不会看到该目录下的文件和子目录列表了.Indexes 的作用就是当该目录下没有 index.html 文件

python错误提示“TabError: inconsistent use of tabs and spaces in indentation”

在遍历打印10以内的奇数是出现"TabError: inconsistent use of tabs and spaces in indentation"的错误提示: 代码如下: 第一感觉没什么错误,但是当我设置显示"空格与制表符"时候,问题出现了,在第4.5行前由制表符,如图所示: 在if和continue前有制表符,所以执行的时候会提示"TabError: inconsistent use of tabs and spaces in indentati

Python之TabError: inconsistent use of tabs and spaces in indentation和ModuleNotFoundError:No module named &#39;win32api&#39;

1.TabError: inconsistent use of tabs and spaces in indentation 这是我的代码,感觉没啥不对, 后来运行之后出现了下面的错误,我也是弄了好久才弄好这个bug. . 这个一般是由于你用编译器写代码时的Tab符和空格符混用引起的.对于Notepade++来说,只要你设置"显示空格和制表符"就行. 1.点击如下按钮: 2.手动设置: View->Show Symbl->Show All Characters 下面是设置之

TabError: Inconsistent use of tabs and spaces in indentation

Pyhton 编辑错误 问题: TabError: Inconsistent use of tabs and spaces in indentation 解决方法: 这个错误是说你用了tab键作缩进了, 因为在python不像C/C++里用大括号来区分程序块,而是用缩进 所以缩进很重要你把Tab都换成空格就好了 版权声明:本文为博主原创文章,未经博主允许不得转载.

Jade报错:Invalid indentation,you can use tabs or spaces but not both问题

现象:通过html生成jade文件之后,更改jade文件时,语句没什么问题的情况下,jade文件编译不通过,报错:Invalid indentation,you can use tabs or spaces but not both. 原因:错误信息上已经写得很清楚了,是因为jade文件里出现了多余的空格导致文件编译不通过. 解决方法:在代码编辑器中设置tab替换空格,就ok了.