Management Studio 2012中是否有快捷方式删除光标所在的行。 除 Shift + Del 之外,因为这会对 Ctrl + C 之前保存的文本产生副作用快捷方式之后。 应该像Eclipse中的 Ctrl + D 一样工作。
答案 0 :(得分:2)
NO。
答案 1 :(得分:0)
我认为您需要更改 public static void SendApplePushNotification(string DeviceToken, String PostData)
{
try
{
string AppleapiPassKey = ConfigurationManager.AppSettings["ApplePushPassword"];
//AppleapiPassKey = string.Empty;
var push = new PushBroker();
push.OnNotificationSent += NotificationSent;
push.OnChannelException += ChannelException;
push.OnServiceException += ServiceException;
push.OnNotificationFailed += NotificationFailed;
push.OnDeviceSubscriptionExpired += DeviceSubscriptionExpired;
push.OnDeviceSubscriptionChanged += DeviceSubscriptionChanged;
push.OnChannelCreated += ChannelCreated;
push.OnChannelDestroyed += ChannelDestroyed;
var appleCert = File.ReadAllBytes(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "bin/private_key_noenc.p12"));
//push.RegisterAppleService(new ApplePushChannelSettings(true,appleCert, AppleapiPassKey)); //Extension method
push.RegisterAppleService(new ApplePushChannelSettings(appleCert, AppleapiPassKey)); //Extension method
var message = new Message() { ChainId = 12, CreatedDate = DateTime.Now, Message1 = "hi how are you" };
push.QueueNotification(new AppleNotification()
.ForDeviceToken(DeviceToken)
.WithAlert(PostData)
.WithSound("Default")
//.WithCustomItem("content-available", message)
//.WithContentAvailable(1)
);
//push.StopAllServices(true);
}
catch (Exception ex)
{
LogError.LogErrorToFile(ex);
}
}
public static void DeviceSubscriptionChanged(object sender,
string oldSubscriptionId, string newSubscriptionId, INotification notification)
{
}
public static void NotificationSent(object sender, INotification notification)
{
}
public static void NotificationFailed(object sender,
INotification notification, Exception notificationFailureException)
{
}
public static void ChannelException
(object sender, IPushChannel channel, Exception exception)
{
}
public static void ServiceException(object sender, Exception exception)
{
}
public static void DeviceSubscriptionExpired(object sender,
string expiredDeviceSubscriptionId,
DateTime timestamp, INotification notification)
{
}
public static void ChannelDestroyed(object sender)
{
}
public static void ChannelCreated(object sender, IPushChannel pushChannel)
{
}
- Tools
然后Options
的快捷键。
见下图。
您可以设置Keyboard
,而不是Shift + Del
。 (默认密钥除外)
答案 2 :(得分:0)
Ctrl + x 执行删除作业(通过剪切并放置到缓冲区)光标所在的整行。
这可以代替手动设置“删除”快捷方式。
答案 3 :(得分:0)
如果有人正在寻找一种方法来执行此操作而不将行剪切到剪贴板,则您需要的命令称为 Edit.LineDelete
。您可以通过转到 Tools --> Options --> Environment --> Keyboard --> Keyboard
并在文本框中搜索命令来访问它。
您可能还需要确保分配给它的组合键尚未被其他任何人使用。