cweijan / vscode-office Goto Github PK
View Code? Open in Web Editor NEW让VSCode支持预览PDF,Exce和Word等格式, 并增加markdown所见即所得编辑器
License: MIT License
让VSCode支持预览PDF,Exce和Word等格式, 并增加markdown所见即所得编辑器
License: MIT License
@cweijan 作者你好:
非常感谢你开源的这款插件,让我在vscode上有了类似typora的协作体验,感激不尽。
这里有个小问题,请问如何自定义css来进行个性化预览,类似Typora将css文件放到相关目录,支持各种自定义主题。
Markdown编辑器在Dark模式下,代码块部分字体颜色较深,很难看清。
只有已保存的md文件重新打开时才会生效
如果在vsc中新建一个md文件则无效
这个是普遍情况吗?
还是说这是刻意设计
插件可以预览utf-8格式的csv(xlsx文件也是一样的),但是gbk格式的就显示乱码。微软office能够正常显示gbk格式csv,但是打开utf-8格式就乱码(虽然可以通过获取数据的方法导入csv数据进行正常显示,但是需要多花费几个步骤)。请问大佬有办法能够平衡这个问题吗?简而言之就是希望这个插件既能显示utf-8格式的文件又能够显示gbk格式的文件。
只能复制,不能剪切....
Hi, open-vsx extension for vscodium is outdated. Could you update it?
When pasting an image to a markdown document, the image is saved to image/<filename>/<hash>.png
That folder will be visible in a git based wiki as used in MS DevOps Server if not hidden using a dot as in .image/<filename>/<hash>.png
Please change the default folder named for pasted images.
Or provide a way to change the default folder in the settings.
内网无法访问互联网, 使用office viewer打开md文件时没有内容显示
1、能不能多添加几个主题(主要指vue官方文档的主题)
2、切换编辑模式和代码主题之后,怎么保存这些配置呢,重新打开之后又变回默认了
比如输'或者"的时候会自动配对另一个,请问能关掉不
感谢!
I love the spreadsheet view for csv-files, but sometimes I do need the power of the raw text editor. For example to do a multi-cursor edit or when I search&replace with a complex regex. Also I like to check the exact underlying csv format every now and then (comma vs semi-colon, double quotes vs single quotes and things like that).
I would like to be able wo easily switch between spreadsheet view from this plugin and the regular text editor from vscode/codium. Currently my workaround is to rename the file to .txt
but that's something would like to avoid.
请问是否可以添加上下左右移动的快捷键?可以方便在编辑的时候移动光标不需要离开主键盘,感谢~
所见即所得编辑器中无法使用copilot
因为, one dark modern不起作用 , 我反复安装卸载, 还重启了机器, 直到来这里, 才看到, 要打开配置中的 :
设置里面, 选择:Viewer follow vscode theme, 配置: "vscode-office.autoTheme": true
如果咱们那个精简的安装主页面, 说一下这个就好了, 咱们插件安装的主页(detail)啥都没说......
Viewing .xls file and using CTRL + F to search in multi-sheet document does not look through sheet contents, but only through sheet names. Is this intended or are there plans for adding this feature in some update?
When starting VSC with Material Icon Theme as enabled real extension, it conflicts with the one included in yours.
Custom icons doesn't work and a few other configs...
Is it possible to disable built in themes and icons? Or at least locally
Have to remove that every update
"themes": [
{
"label": "One Dark Modern",
"uiTheme": "vs-dark",
"path": "./theme/OneDark-Modern.json"
}
],
"iconThemes": [
{
"id": "material-icon-theme",
"label": "Material Icon Theme",
"path": "./dist/material-icons.json",
"_watch": true
}
],```
在某行的行首按下Tab后,看上去像是在行首有四字符的缩进,但实际在源文件里是以类似代码块的三个`围起来的。重新加载之后就会显示成代码块的样式,缩进就没了。
有这个选项, 但试来试去还是没用.
缺少这个功能最大的不方便就是在移动文档的时候. 相对图片路径根本没什么用, 极大的限制了功能
For the purpose of working with source control software like GIT. Currently the documents are simply open and the differences are not highlighted and/or emphasize.
如题所示,使用插件时,通过设置颜色的时候应该是与代码块的符号冲突,所以颜色设置不起作用。
Why is an outdated version of vscode-restclient is used instead referencing the current version. You could simply reference the depenency in the extension manifest with key extensionDependencies
Hi, at first i want to thank you for this ingenious extension. But I personally have one improvement tip: please introduce a dark mode if it's possible. I am very used to it in VSCode.
内网无法访问互联网, 使用office viewer打开md文件时没有内容显示
在 2.2.1 版本 可以直接粘贴图片,默认生成一个图片文件夹,后续按照md文件名对文件夹内图片分类
这个功能很好用,
但是在最近的两个版本,这个功能没有了.希望保留这个功能,目前版本已经回退到2.2.1
Hello 👋 I'm from the VS Code team.
Recently, we have been exploring a security feature we refer to as Workspace Trust. This feature is intended to centralize and unify a security conscious decision required by a variety of VS Code features. With workspace trust, the user will be able to declare whether or not they trust the folder that is opened in VS Code before these features are executed.
We want to make sure that those users have a delightful experience with workspace trust and that includes extension authors deciding how much of their extension is supported in an untrusted workspace. Custom editors are special in that if they cannot at least render in an untrusted state then they will be replaced by a lightweight message telling the user to enable trust. This means that users of your extension will not be able to see their editors and there may even be cases of data loss.
You can enable the feature with the following setting security.workspace.trust.enabled
. Once enabled, you will see the following dialog when opening folders in VS Code.
This dialog is important for allowing the user to make a decision early and understand the impact of their decision. Once you understand the feature, you may want to customize when to display the dialog using the setting security.workspace.trust.startupPrompt
.
You can follow the development of Workspace Trust and provide feedback in issue #106488.
First off, all of what I am about to say can be found in issue #120251. That issue will include discussion of the feature and any updates to the feature.
The Workspace Trust extension API is now in stable. This allowed us to release the first cut of our guide for onboarding your extension to Workspace Trust. The API is small, so here is a quick look.
You can declare your extension to provide complete, partial or no support in untrusted workspaces using the untrustedWorkspaces
capability in package.json
.
The following example declares that the extension is supported completely in untrusted workspaces. In this case, the extension is enabled in untrusted workspaces.
"capabilities": {
"untrustedWorkspaces": {
"supported": true
}
}
The next example declares that the extension is not supported in untrusted workspaces. In this case, the extension is disabled in untrusted workspaces.
"capabilities": {
"untrustedWorkspaces": {
"supported": false
}
}
The third option is to declared limited
support. There are three tools provided to you when you select the limited
option.
First, if you have a setting that can be configured in the workspace but requires the workspace to be trusted in order to apply the workspace value, then you can include the setting using restrictedConfigurations
array property in untrustedWorkspaces
object. Doing so, VS Code will ignore the workspace value of these restricted settings when your extension reads these settings values using the VS Code Workspace Configuration API.
The following example declares the settings that are restricted in untrusted workspaces.
"capabilities": {
"untrustedWorkspaces": {
"supported": "limited",
"restrictedConfigurations": [
"markdown.styles"
]
}
}
Next, you can also check and listen if the current workspace is trusted or not programmatically using the following API:
export namespace workspace {
/**
* When true, the user has explicitly trusted the contents of the workspace.
*/
export const isTrusted: boolean;
/**
* Event that fires when the current workspace has been trusted.
*/
export const onDidGrantWorkspaceTrust: Event<void>;
}
Lastly, you can hide commands or views declaratively with the isWorkspaceTrusted
context key in your when clauses.
A far more detailed guide on how to onboard which will be updated as we receive feedback can be found in issue #120251.
We are planning on enabling this by default in the near future (most likely next release). To prepare for that day, we want to work with you to allow your editor to work seamlessly alongside the trusted workspace experience
The main features that should work for custom editors in an untrusted folder is rendering, viewing, and saving (if applicable). After reviewing your codebase, I believe that your extension does certain things that can be dangerous if the folder contents are malicious (i.e. executing user files as code) therefore I believe that limited
is the best option. This involves listening to the trust state changes and disabling certain features in the untrusted state.
Please let me know if you have any question or would like to meet up via voice chat as I would be happy to assist you in getting your extension ready for workspace trust!
To my knowledge, the file format in *.dotx is the same as *.docx. The main difference is saving functionality. A *.dotx since it is to be used as a template normally doesn't have a "save" option. Instead the default is "save as", to create a new file from the template.
Hi, there. Thank you for the great software! I am surprised that this project covers numerous file types.
Especially, the function previewing PDF file is the fastest in other plugins. I request adding an option to hide a sidebar of the viewer because the sidebar takes a large space of the viewer. Is it possible to implement it? Please consider this option.
Best wishes,
https://github.com/MadMaxChow/VLOOK
要是能够加入VLOOK相关的支持就厉害了,Markdown易写,但是在遇到大量文字编辑时候以及排版、输出的时候,真的让人抓破头皮。
因为有些特殊场景没有源码编辑来的利索,希望有可能两种视图可以有切换的地方。
1.md文件编辑器顶部修改编辑模式、代码块预览主题后,如何保存该改变,使每次打开md文件时都默认应用该改变
2.希望可以支持预览主题切换
Since sheetjs seems to be able to open .ods
files, it would be great if .ods
files (from LibreOffice) were added to compatble files.
I can make a PR. I think the code needs to be modified here : https://github.com/cweijan/vscode-office/blob/master/src/provider/officeViewerProvider.ts#L50-L52
Is it the only place the code needs to be modified ?
I tried this modification on my PC and it seems to work well.
On a sidenote, i tried this kind of modification with .odt
files but unfortunately with no luck.
Thanks a lot for creating this extension. It is something I was looking for a long time.
Is there a way to add a new column/row to a table, once it was automatically created (without going into the md-"sourcecode")?
Beside lving next to China, We indains and so do many other ppl can't get the labels of this extension because they aren't in English. Anyway i could change it to English ?
It's a very powerful and handy extension but because we don't get chinese many ppl are unable to use it.
Plz add english language feature or if it is already plz tell how to enable it.
I can do Enlish scripting for u if u need
## 1.2. 操作流程
- [x] 1. 扫描当前exe的所在的目录。找出`uvproj`的文件。
- [x] 2. 获取`uvproj` 文件里面的生成文件信息。
- [x] 3. 查找同名的`uvopt`文件。并尝试获取他的配置信息。
- [x] 4. 获取flash配置信息。
1. 如果配置信息不是AC5121 或者不存在分区信息。则**直接退出**。
2. 如果是AC5121,则执行下一步骤。
uvproj
的文件。uvproj
文件里面的生成文件信息。uvopt
文件。并尝试获取他的配置信息。Incorrect type. Expected "object".
"workbench.editorAssociations": [{
"viewType": "default",
"filenamePattern": "*.md"
}]
右边实际显示区域的缩放比例会随着拖动缩放改变,但左侧侧边栏对拖动无反应。
word打开后中间有个黑色的方块,很突兀
希望可以支持第三方图床,使得粘贴的图片能够自动上传到图床上。
希望可以加一个像typora那样 在添加图片自动上传图床的功能
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.