方法如下:
1、右击VS的快捷方式,选择【属性】,打开属性对话框,再点击【高级】按钮,如下图所示:
2、再勾选【用管理员身份运行】,点击【确定】即可:
然后就可以双击VS快捷方式,直接以管理员身份运行了,不用再右击选择【以管理员身份运行】了。