折叠多行注释显示第一行

时间:2016-03-19 17:41:04

标签: intellij-idea

我对IntelliJ的评论折叠有疑问。

我有以下评论:

F:\DEV\Ember\Ember1>npm install -g ember-cli SyntaxError: Error parsing C:\Users\vitorpfn\AppData\Roaming\npm\node_modules\npm\node_modules\request\node_modules\extend\package.json: Unexpected token p at Object.parse (native) at readPackage (module.js:81:52) at tryPackage (module.js:91:13) at Function.Module._findPath (module.js:153:20) at Function.Module._resolveFilename (module.js:323:25) at Function.Module._load (module.js:276:25) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at Object.<anonymous> (C:\Users\vitorpfn\AppData\Roaming\npm\node_modules\npm\node_modules\request\index.js:17:29) at Module._compile (module.js:409:26) npm ERR! Windows_NT 10.0.10586 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\vitorpfn\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "ember-cli" npm ERR! node v4.4.0 npm ERR! npm v3.5.3 npm ERR! path C:\Users\vitorpfn\AppData\Roaming\npm\node_modules\npm\node_modules\request\node_modules\extend\package.json npm ERR! Error parsing C:\Users\vitorpfn\AppData\Roaming\npm\node_modules\npm\node_modules\request\node_modules\extend\package.json: Unexpected token p npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! <https://github.com/npm/npm/issues>

当我折叠它时,它看起来像: /** * compileNews() converts the text of TextCompiler.soundAlarm() to audio as speech.mp3 * * @throws Exception */

有什么方法可以让它折叠并显示评论的第一行吗? 如:

/**...*/

1 个答案:

答案 0 :(得分:1)

显示为折叠代码片段占位符的文本由IDE控制;它不能被用户改变。有关相关的YouTrack问题,请参阅https://youtrack.jetbrains.com/issue/IDEA-144788