如何禁用VS2008的Intellisense
答案:2 悬赏:20 手机版
解决时间 2021-11-16 22:11
- 提问者网友:niaiwoma
- 2021-11-15 23:27
如何禁用VS2008的Intellisense
最佳答案
- 五星知识达人网友:话散在刀尖上
- 2021-11-16 00:30
1、在“Tools|Macros|Macro
Explorer”下打开Macro
Explorer。
2、点击Macros节点,选择 “New
Macro
Project” ,取名为“Intellisense”,然后选一个位置保存(默认位置即可)。
3、你可以看到一个宏工程,名字叫做Module1,通过右键的rename将其名字改为IntellisenseModule(程序员就是有拼写强迫症。。。其实随便取个名字也没什么问题)。
4、右键选择Edit,然后会打开一个新的窗口。将表1中的文字复制到窗口,然后选择“File|Close
and
Return” (我没找到这个选项,直接点了保存,然后点了绿色的小三角形运行了一下,然后关闭窗口,关闭时会提示是否停止debug)
5、现在宏代码已经都有了,只需要把宏代码添加按钮位置即可(可以看到这段宏代码一共定义了四个操作,分别是:不更新,关闭,开启,当前状态,当然,这些跟设置没关系)。
Explorer”下打开Macro
Explorer。
2、点击Macros节点,选择 “New
Macro
Project” ,取名为“Intellisense”,然后选一个位置保存(默认位置即可)。
3、你可以看到一个宏工程,名字叫做Module1,通过右键的rename将其名字改为IntellisenseModule(程序员就是有拼写强迫症。。。其实随便取个名字也没什么问题)。
4、右键选择Edit,然后会打开一个新的窗口。将表1中的文字复制到窗口,然后选择“File|Close
and
Return” (我没找到这个选项,直接点了保存,然后点了绿色的小三角形运行了一下,然后关闭窗口,关闭时会提示是否停止debug)
5、现在宏代码已经都有了,只需要把宏代码添加按钮位置即可(可以看到这段宏代码一共定义了四个操作,分别是:不更新,关闭,开启,当前状态,当然,这些跟设置没关系)。
全部回答
- 1楼网友:忘川信使
- 2021-11-16 02:09
方法一:
将Intellisense 禁用之!
移除该文件:\Microsoft Visual Studio 8\VC\vcpackages\feacp.dll
Intellisense 毕竟是个好东东,还好有VA可以做为替补。
方法二:
1.在“Tools|Macros|Macro Explorer”下打开Macro Explorer。
2.点击Macros节点,选择 “New Macro Project” ,取名为“Intellisense”,然后选一个位置保存(默认位置即可)。
3.你可以看到一个宏工程,名字叫做Module1,通过右键的rename将其名字改为IntellisenseModule(程序员就是有拼写强迫症。。。其实随便取个名字也没什么问题)。
4.右键选择Edit,然后会打开一个新的窗口。将表1中的文字复制到窗口,然后选择“File|Close and Return” (我没找到这个选项,直接点了保存,然后点了绿色的小三角形运行了一下,然后关闭窗口,关闭时会提示是否停止debug)
5.现在宏代码已经都有了,只需要把宏代码添加按钮位置即可(可以看到这段宏代码一共定义了四个操作,分别是:不更新,关闭,开启,当前状态,当然,这些跟设置没关系)。
Imports System
Imports EnvDTE
Imports EnvDTE80
Imports System.Diagnostics
Enum ISENSE_FLAGS
ISENSE_NORMAL = 0 'normal (Intellisense On)
ISENSE_NOBG = &H1 'no bg parsing (Intellisense Updating Off - although NCB file will be opened r/w and repersisted at shutdown)
ISENSE_NOQUERY = &H2 'no queries (don't run any ISense queries)
ISENSE_NCBRO = &H4 'no saving of NCB (must be set before opening NCB, doesn't affect updating or queries, just persisting of NCB)
ISENSE_OFF = &H7 'no bg parsing, no queries, no saving of NCB, ncb will still be opened, however
End Enum
Public Module IntellisenseModule
Sub Intellisense_NoUpdate()
DTE.Properties("TextEditor", "C/C++ Specific").Item("IntellisenseOptions").Value = ISENSE_FLAGS.ISENSE_NOBG Or ISENSE_FLAGS.ISENSE_NCBRO
End Sub
Sub Intellisense_Off()
DTE.Properties("TextEditor", "C/C++ Specific").Item("IntellisenseOptions").Value = ISENSE_FLAGS.ISENSE_OFF
End Sub
Sub Intellisense_On()
DTE.Properties("TextEditor", "C/C++ Specific").Item("IntellisenseOptions").Value = ISENSE_FLAGS.ISENSE_NORMAL
End Sub
Sub Intellisense_Status()
Dim x
x = DTE.Properties("TextEditor", "C/C++ Specific").Item("IntellisenseOptions").Value
Dim result
If x = ISENSE_FLAGS.ISENSE_NORMAL Then
result = "Intellisense On"
ElseIf x = ISENSE_FLAGS.ISENSE_OFF Then
result = "Intellisense Off"
Else
If x And ISENSE_FLAGS.ISENSE_NOBG Then
result = "No background parsing. "
End If
If x And ISENSE_FLAGS.ISENSE_NOQUERY Then
result = result + "No Intellisense queries in IDE. "
End If
If x And ISENSE_FLAGS.ISENSE_NCBRO Then
result = result + "No saving of NCB file. "
End If
End If
MsgBox(result)
End Sub
Sub DeleteNcbAndReload()
Dim name
Dim namesln
namesln = DTE.Solution.FullName()
If Len(namesln) > 4 Then
name = Left(namesln, Len(namesln) - 4) & ".ncb"
If MsgBox("This may take a while. Closing solution, deleting " & name & ", and reopening solution.", MsgBoxStyle.OkCancel) = MsgBoxResult.Ok Then
DTE.Solution.Close()
Kill(name)
MsgBox("NCB deleted", MsgBoxStyle.OkOnly)
DTE.Solution.Open(namesln)
End If
Else
MsgBox("No solution is currently loaded.", MsgBoxStyle.OkOnly)
End If
End Sub
End Module
将Intellisense 禁用之!
移除该文件:\Microsoft Visual Studio 8\VC\vcpackages\feacp.dll
Intellisense 毕竟是个好东东,还好有VA可以做为替补。
方法二:
1.在“Tools|Macros|Macro Explorer”下打开Macro Explorer。
2.点击Macros节点,选择 “New Macro Project” ,取名为“Intellisense”,然后选一个位置保存(默认位置即可)。
3.你可以看到一个宏工程,名字叫做Module1,通过右键的rename将其名字改为IntellisenseModule(程序员就是有拼写强迫症。。。其实随便取个名字也没什么问题)。
4.右键选择Edit,然后会打开一个新的窗口。将表1中的文字复制到窗口,然后选择“File|Close and Return” (我没找到这个选项,直接点了保存,然后点了绿色的小三角形运行了一下,然后关闭窗口,关闭时会提示是否停止debug)
5.现在宏代码已经都有了,只需要把宏代码添加按钮位置即可(可以看到这段宏代码一共定义了四个操作,分别是:不更新,关闭,开启,当前状态,当然,这些跟设置没关系)。
Imports System
Imports EnvDTE
Imports EnvDTE80
Imports System.Diagnostics
Enum ISENSE_FLAGS
ISENSE_NORMAL = 0 'normal (Intellisense On)
ISENSE_NOBG = &H1 'no bg parsing (Intellisense Updating Off - although NCB file will be opened r/w and repersisted at shutdown)
ISENSE_NOQUERY = &H2 'no queries (don't run any ISense queries)
ISENSE_NCBRO = &H4 'no saving of NCB (must be set before opening NCB, doesn't affect updating or queries, just persisting of NCB)
ISENSE_OFF = &H7 'no bg parsing, no queries, no saving of NCB, ncb will still be opened, however
End Enum
Public Module IntellisenseModule
Sub Intellisense_NoUpdate()
DTE.Properties("TextEditor", "C/C++ Specific").Item("IntellisenseOptions").Value = ISENSE_FLAGS.ISENSE_NOBG Or ISENSE_FLAGS.ISENSE_NCBRO
End Sub
Sub Intellisense_Off()
DTE.Properties("TextEditor", "C/C++ Specific").Item("IntellisenseOptions").Value = ISENSE_FLAGS.ISENSE_OFF
End Sub
Sub Intellisense_On()
DTE.Properties("TextEditor", "C/C++ Specific").Item("IntellisenseOptions").Value = ISENSE_FLAGS.ISENSE_NORMAL
End Sub
Sub Intellisense_Status()
Dim x
x = DTE.Properties("TextEditor", "C/C++ Specific").Item("IntellisenseOptions").Value
Dim result
If x = ISENSE_FLAGS.ISENSE_NORMAL Then
result = "Intellisense On"
ElseIf x = ISENSE_FLAGS.ISENSE_OFF Then
result = "Intellisense Off"
Else
If x And ISENSE_FLAGS.ISENSE_NOBG Then
result = "No background parsing. "
End If
If x And ISENSE_FLAGS.ISENSE_NOQUERY Then
result = result + "No Intellisense queries in IDE. "
End If
If x And ISENSE_FLAGS.ISENSE_NCBRO Then
result = result + "No saving of NCB file. "
End If
End If
MsgBox(result)
End Sub
Sub DeleteNcbAndReload()
Dim name
Dim namesln
namesln = DTE.Solution.FullName()
If Len(namesln) > 4 Then
name = Left(namesln, Len(namesln) - 4) & ".ncb"
If MsgBox("This may take a while. Closing solution, deleting " & name & ", and reopening solution.", MsgBoxStyle.OkCancel) = MsgBoxResult.Ok Then
DTE.Solution.Close()
Kill(name)
MsgBox("NCB deleted", MsgBoxStyle.OkOnly)
DTE.Solution.Open(namesln)
End If
Else
MsgBox("No solution is currently loaded.", MsgBoxStyle.OkOnly)
End If
End Sub
End Module
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯