为什么在Java的Object类中声明的wait()和notify()?(Why are wait() and notify() declared in Java's Object class?)
为什么在
Object
类中声明的wait()
和notify()
方法,而不是Thread
类?Why are the
wait()
andnotify()
methods declared in theObject
class, rather than theThread
class?
原文:https://stackoverflow.com/questions/1769489
最满意答案
据我所知,要做到这一点的唯一方法就是在该行上输入任何内容(然后删除它)。 或者点击空间,你将永远不会在那里看到它,直到你回到那条线。
一旦VS确定你已经编辑了一行文本,它不会为你自动修改它(至少,不是你描述的那种方式)。
As far as I know, the only way to do that is to enter something (anything) on that line, then delete it. Or hit space and you'll never see it there until you return to that line.
Once VS determines that you've edited a line of text, it won't automatically modify it for you (at least, not in that way that you've described).
相关问答
更多-
据我所知,要做到这一点的唯一方法就是在该行上输入任何内容(然后删除它)。 或者点击空间,你将永远不会在那里看到它,直到你回到那条线。 一旦VS确定你已经编辑了一行文本,它不会为你自动修改它(至少,不是你描述的那种方式)。 As far as I know, the only way to do that is to enter something (anything) on that line, then delete it. Or hit space and you'll never see it the ...
-
我可以在Visual Studio中重新格式化HTML而不删除空行吗?(Can I reformat HTML in Visual Studio without removing blank lines?)[2022-04-25]
简短的回答是否定的,2008年将始终以其设置的方式重新格式化。 您必须配置标记特定选项中的设置,以匹配您希望HTML显示的方式。 它可以在标记之前和之后最多执行两个空格,但遗憾的是,没有办法为注释维护空格或格式(它只识别相同的start + end标记) 如果您遇到与您的编码风格相匹配的问题,我对此的疑问可能有所帮助 The short answer is no, 2008 will always reformat it the way it has in its settings. You will ha ... -
如何在Visual Studio Editor 2012选项卡中设置永久缩放因子(How to set permanent Zoom factor in Visual Studio Editor 2012 tabs)[2022-09-09]
如果你只是缩放,所以编辑器中的文字更大,那为什么不只是增加字体大小? 打开工具 - >选项,在“环境”选项卡下选择“字体和颜色”,并将字体大小更改为任何您想要的。 - 编辑 - 正如@Anovative在下面的评论和回答中指出的,现在有一种方法可以在Visual Studio 2013(以及后续版本中假设)中设置默认缩放。 If you are simply zooming so the text in your editor is bigger, then why not just increase th ... -
在Visual Studio 2017中删除垂直点划线(Remove vertical dotted indentation lines in Visual Studio 2017)[2022-09-06]
在“ Tools → Options → Text Editor下有一个选项,称为Show structure guide lines要删除的Show structure guide lines 。 In the last version of Visual Studio Code, downloaded in July/2017 (please note that this is not Visual Studio, but as @tambre pointed out, this may help in ... -
找到了。 它是“结构可视化器”选项。 转到“工具 - >选项”,并在对话框中选择“生产率电动工具”。 这是一个靠近列表末尾的选项: Found it. It is the "Structure Visualizer" option. Go to "Tools->Options" and in dialog select "Productivity Power Tools". It is an option close to the end of the list:
-
由于Visual Studio 2012改变了它的正则表达式语法,所以由阿拉伯语翻译成以下的VS 2012中的原始答案: 删除单个空白行 旧: ^:b*$\n 新: ^(?([^\r\n])\s)*\r?$\r?\n Visual Studio 2013(感谢BozoJoe和Joe Johnston): ^\s*$\n 删除双重空白行 旧: ^:b*\n:b*\n 新: ^(?([^\r\n])\s)*\r?\n(?([^\r\n])\s)*\r?\n 卷起你的舌头。 以下是MSDN的转换表。 I ...
-
没有插件的最接近的是:工具>选项>文本编辑器> C#>格式化>间距>在参数列表括号内插入空格 但它也会在')'之前增加空间,并且即使它只有一条线就可以腾出空间。 The closest thing without a plugin is: Tools > Options > Text Editor > C# > Formatting > Spacing > Insert space within argument list parentheses but it's also add space before ...
-
也许我只是疯了,但如果你想摆脱这些标签,为什么不只是按Shift + Tab而不是退格呢? Maybe I'm just crazy, but why don't you just press Shift + Tab instead of backspace if you want to get rid of the tabs?
-
早期版本的智能设备项目(例如WIndows Mobile 6.X)在Visual Studio 2010中不受支持。 没有计划将此支持添加到VS2010。 你将不得不继续使用VS2008进行这样的项目。 http://msdn.microsoft.com/en-us/library/sa69he4t.aspx指出: 在Windows Phone OS 7.0之前,Visual Studio 2010不支持Windows Phone版本的移动应用程序开发。 对于Visual Studio 2008移动开发人员 ...
-
Visual Studio 2017 引入了一项功能 ,允许您使用开源“EditorConfig”格式在“每个解决方案”的基础上更改编辑器配置。 您应该在目录中看到名为.editorconfig的文件。 在那里你可以看到各种各样的设置,我相信你正在寻找的是: indent_style = space indent_size = 2 然后,您可以根据需要删除或更改。 Visual Studio 2017 introduced a feature that lets you use the open sour ...